130
submitted 6 months ago by boredsquirrel@slrpnk.net to c/linux@lemmy.ml

Very interesting and understandable explanations of low level architecture and filesystems, namespaces, userspace, kernel functions, drivers etc.

Highly recommend!

you are viewing a single comment's thread
view the rest of the comments
[-] massivefailure@lemm.ee -1 points 6 months ago

The biggest lie of programming these days is just because something is coded in [trendy "secure" language of the day, including Rust] means it's secure. Bullcrap. It's how you code things that make it secure or not. You can be proficient enough in C to make programs that are much more secure vs. rust. The fact that everyone makes mistakes and programming is an enormous beast to wrangle with makes things insecure and needs to be monitored and fixed.

[-] witx@lemmy.sdf.org 14 points 6 months ago

You're just partially correct.

With Rust you get compile time guarantees that your code doesn't have a specific class of vulnerabilities. Can you do that with C?

[-] wargreymon2023@sopuli.xyz 10 points 6 months ago* (last edited 6 months ago)

Nope, rust is ideal for kernel code, it really is an improvement.

Writing kernel in C is like building a house with a hammer on loosen handle, there is too much give and the builder has to tap it a few times before every strike. You could say the builder knows how to build and secure a house, but hes still a human. The loosen handle adds too much difficulty result in errors which would otherwise be avoided.

[-] steeznson@lemmy.world 3 points 6 months ago

The rust standard lib uses unsafe in various places too. Even if you avoided every other category of error in your code logic, you could still end up with UB.

this post was submitted on 06 May 2024
130 points (96.4% liked)

Linux

48132 readers
526 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS