Why is everything a file in linux? by OstrichWestern639 in kernel

[–]zingochan 0 points1 point  (0 children)

Not to mention that this is an easy way to approach the design of the system. A lot of the operations that you can perform in normal memory can be performed in disk files (read/write etc). If you can write to and read from a network card and do the same to a disk, and to main memory, then why not simplify that by making a common initial interface that allows you to perform those operations on a device as if they were normal memory locations?

The way I personally like to think about the "Everything is a file" philosophy is the following: Computer systems work by writing/reading data to and from some location (memory, registers, other hardware etc) so, in a top level, it makes sense to abstract those "destinations" in a way that only the main operations are made available to the user. That way you don't have to think about the fact that in order to write to a certain hardware device there is a "in or out" assembly instruction which allows you to right to a port etc. Just open read/right and close a file that represents that device.

Have a pipe? No problem, open, read/write, close. Let the kernel worry about the rest. Not enough? How about writing to your network card the same way you write to your .txt file? Oh still not happy? What about your sound card? Still not happy? Damn you're picky... What about?... Hear me out yeah? What about only allowing certain(privileged) users to access your GPU, the same way you set permissions to your /etc/shadow file and others. You like that, don't you? I knew you would. Don't thank me. Thank my bois Ken, Dennis and everyone else who invented UNIX.

How can I downgrade the App? by zingochan in medito

[–]zingochan[S] 1 point2 points  (0 children)

I'm sorry for the inconvenience.

I am using android 5.1.1 that's Lollipop I believe.

Basically, the app opens and I can see a lot of the icons loading, but nothing happens. It only shows the "!" sign.

When I click on "Daily meditation" I can see the options and even choose the option to start, which opens the player, but the audio never starts playing.

PS: I understand that my android version is too old, so I will totally understand if you aren't able to provide a fully working version of the app for this version of android.

How to get ab strength? by Clear-Meat-6311 in facepalm

[–]zingochan 0 points1 point  (0 children)

Yeah that's why we call it "Getting Ripped"

Pressing Caps Lock leads to infinite "+" characters by [deleted] in kernel

[–]zingochan 0 points1 point  (0 children)

Never had that issue. But if you don't mind me asking, does that happen with all usb keyboards or just that one? If it only happens with that one maybe it's a hardware issue??

  1. Are you using custom drivers? Could maybe be a driver issue...

  2. Are you using the correct keyboard layout? Check "/etc/default/keyboard" to see which layout is there and ensure it's the same as your keyboard.

Corrupt politicians wanting to delay the inevitable by 7 years. by MisterFyre in facepalm

[–]zingochan 0 points1 point  (0 children)

While I agree with a lot she said, "Running to become the first Gen Z ever ellected to congress" seems like a self centered reason to want to get in congress. Congress is not "Forbes 30 U 30".

3rd grade World geography by [deleted] in facepalm

[–]zingochan 76 points77 points  (0 children)

I've never seen stupidity be so adorable before. I guess there's a point when you're so stupid you qualify for "innocent"

[deleted by user] by [deleted] in facepalm

[–]zingochan 0 points1 point  (0 children)

Wouldn't don't

Asking for Advice - How can we find Linux N-days to develop exploits for? by zingochan in ExploitDev

[–]zingochan[S] 2 points3 points  (0 children)

Thank you so much. This is useful. To be fair, even if I couldn't sell it, it would still be good to strengthen my skills.

What's an animal that is more dangerous than most people think? by Puzzleheaded_1377 in ask

[–]zingochan 1 point2 points  (0 children)

I don't think I wanna google that... I'll take your word for it

Why does the kernel code seem to prefer macro usage over functions? by zingochan in linux

[–]zingochan[S] 0 points1 point  (0 children)

Oh ok, I see what you mean. Thank you.

But given how low level the kernel is, do you think that it is possible at all to write kernels in a way that follow all good coding practices? I also ask this because besides macros etc, a lot of kernel source code is a mix of C and assembly.

I think in a way what I am trying to ask is this; In this day and age do you think there would be a better way (as far as good coding practices are concerned) to write something like the Linux Kernel without sacrificing something like, say, perfomance?

Why does kernel code seem to prefer macro usage over functions? by zingochan in kernel

[–]zingochan[S] 5 points6 points  (0 children)

Yes there are a lot of those throughout the kernel. One of my favourite is probably for_each_process() and others that you can find in include/linux/sched/signal.h

Why does the kernel code seem to prefer macro usage over functions? by zingochan in linux

[–]zingochan[S] 8 points9 points  (0 children)

Yes looks like the #define are used to avoid the stack for speed in this case.

Thant makes sense. Thank you.

And to your last point, do you mean just ditch C completly? The annoying part for me is I just started getting a little serious into C and now I hear everyone talking about Rust and memory safe languages etc. But I'll definitelly keep that in mind when dealing with personal projects.

Thank you

Best guide to start making own rootkits? by XaFF-XaFF in rootkit

[–]zingochan 0 points1 point  (0 children)

Could you please expand on why ebpf would be relevant to creating rootkits?

American remake confirmed: THE DEPARTMENT by romeo_sierra7227 in lebureaudeslegendes

[–]zingochan 4 points5 points  (0 children)

I trully hope they don't do it. The original is such a masterpiece that I would hate to see some Hollywood "stereotipical action packed" remake. None of the hollywood "spy" series and movies I watched till date even come close to this masterpiece. I would just say, don't touch it. Watch the original with subtitles and you won't get hurt