[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: nofurtherquestions.gif (508 KB, 300x300)
508 KB
508 KB GIF
I find it strange that I never see anyone advocating for systemd to be re-written in Rust.

It's the obvious place to start using a safe language in Linux userspace. Since PID1 spawns everything else and is the most important PID in userspace.

Unlike kernel modules you don't need to use unsafe code anywhere to implement the init and service manager. So theoretically everything in PID1 should be doable in "safe" code. Meaning everything spawned by it would also be much safer.

They should at least be re-writing certain parts of the systemd src tree by now like udev and everything to do with PAM/polkit. The init part should have been done years ago.

I find it very strange that the same big tech companies pushing Rust so hard lately never make a peep about what's running as PID1.
>>
>>107599344
This
>>
>>107600167
You know it's true because no bot will reply to this thread.
>>
>>107599344
Nim does this better
>you need statically compiled init systems because reasons
No I dont
>>
>>107599344
Submit PR then
>>
>>107599344
>systemd
>rust
I double hate you
>>
>rewrite program in safe rust
>look inside
>unsafe_unwrap()
>>
>>107599344
That, and no attempt at oxidizing Wayland pretty much prove that all rust promoters engage in a hostile campaign against software development.
>>
>>107600996
>Anon doesn't want his enemies to eat themselves
Few can understand the genius of the OP
>>
They messed up coreutils
>>
File: maxresdefault.jpg (33 KB, 1280x720)
33 KB
33 KB JPG
Let's start bullying Microsoft to do this
>>
>>107599344
some javascript needs to be removed first.
this is not a joke.
https://nlnet.nl/project/allowd/
>>
>>107599344
ACCELERATE
>>
>>107601176
polkit has always been so retarded. Its entire reason for existing is because gksudo was deemed insecure. A small application that did nothing but launch a GUI to prompt for password whenever sudo was needed to launch something that required elevated privileges. Something you could easily implement in a few lines of code that was easy to audit.

Instead it was replaced by a daemon running as root at all times, launched by another daemon running as root at all times, that talks to other daemons running as root at all times over a insecure channel in userspace. All of that to avoid typing a password into a small prompt. gksudo was so good at what it did that it was forcefully removed from every last major distro's repos so you can't even run it even if you want to. You have to go out of your way to track it down and package it yourself.

They have the gall to call something like Xorg a possible exploit when they have millions of lines of shit like logind running as root all of the time.
>>
File: 1751397604426683.jpg (16 KB, 360x360)
16 KB
16 KB JPG
>>107599344
>OOM crashes PID1
Yeah bro
>>
could it be done in haskell or fortran?
>>
>>107601963
what are you poor? Can't afford 128gb of ram?
>>
>>107602087
sure but considering that haskell generates garbage 1gb/s you can't have too much in the init before it OOM
>>
>>107599344
Two liabilities will cancel each other out



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.