sudo-rs
systemd
sudo-rs | systemd | |
---|---|---|
13 | 524 | |
2,832 | 12,714 | |
0.2% | 2.0% | |
9.3 | 10.0 | |
about 1 month ago | about 16 hours ago | |
Rust | C | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sudo-rs
-
Run0 – systemd based alternative to sudo announced
There is also a write of sudo in Rust, which works more akin to the traditional sudo but memory-safe and with fewer bugs: https://www.memorysafety.org/blog/sudo-first-stable-release/
Source code: https://github.com/memorysafety/sudo-rs
And if you are running Debian 13 (trixie) or later, or Ubuntu 24.04 (Noble Numbat) or later, you can already install it using `apt install sudo-rs`.
-
The First Stable Release of a Rust-Rewrite Sudo Implementation
It seems like those changes are noted here: https://github.com/memorysafety/sudo-rs#differences-from-ori...
- Testing the memory safe Rust implementation of Sudo/Su
-
How to spawn a process as root (like sudo). without sudo?
It uses the setuid flag, just like sudo. The readme says
- Way to improve security of sudo: make a daemon instead of setuid bina
- Two core Unix-like utilities, sudo and su, are getting rewrites in Rust
-
Sudo and Su Being Rewritten in Rust for Memory Safety
https://github.com/memorysafety/sudo-rs/blob/main/proofs/sud...
sidenote: why there is no python like syntax language TLA+ and ability to generate a partial implementation you could hook into (complete) from that model.
- Sudo-rs: A memory safe implementation of sudo and su
- memorysafety/sudo-rs: A memory safe implementation of sudo and su. Sudo-rs is currently under active development and is not suited for any production environment
-
Bringing Memory Safety to sudo and su
If you read the README https://github.com/memorysafety/sudo-rs
> Our current target is to build a drop-in replacement for most basic use cases of sudo. ...
systemd
- Systemd v256
- systemd v256
-
Debian's /Tmpest in a Teapot
It isn't cleaned up at boot IIRC. Unless you leave your computer off for 30 days and then come back [1] :).
But it shouldn't be too hard to write a relativly simple systemd.unit file that does that at boot. After all the main part would be `Requires/After=local-fs.target` and something like `ExecStart=bash -c 'rm -rf /var/tmp/*'` I think (you'd need to double check what exactly to do if you want to do this).
[1] https://github.com/systemd/systemd/issues/33162
-
Ask HN: Who wants to be hired? (June 2024)
Email: v[at]vda.io
Hi HN! I'm a Linux security engineer looking for work on Open Source software. I've done some security work in the Linux Kernel (containerization primitives), in systemd as well as some work on Secure Boot.
Notably I've implemented auto-enrollment of secure boot keys in systemd. See (https://github.com/systemd/systemd/pull/20255 & https://lpc.events/event/16/contributions/1259/).
Lately, I've been very interested in MicroVMs and minimizing the Linux Kernel attack surface.
Message me if any of that sounds interesting!
- It's always TCP_NODELAY. Every damn time
- Dlopen() Metadata for ELF Files
-
PoC to demonstrate root permission hijacking by exploiting "systemd-run"
No, the OP was not sent any harassment, the OP _did_ the harassment as it can be seen in the tweets. I mean, they are right there, just click on the links you shared. One of the OP's followers even openly called for the assassination of the project maintainer, and you have the galls to defend him? This is truly deranged stuff.
And again, there is no "vulnerability", there is simply a person that doesn't know how Linux works and has learned something new. Which again it's fine, nobody knows everything and we all learn new things everyday, it's just that normal and sensible people don't use that to make grand claims on social media and start harassment campaigns culminating in death threats.
Professional security researchers responsibly report real issues using the appropriate channels, such as defined at: https://github.com/systemd/systemd/security/policy this is not the work of a researcher, this is a grifter looking for self-promotion on social media.
-
Run0 – systemd based alternative to sudo announced
> 3. even `adduser` will not allow it by default
5. useradd does allow it (as noted in a comment). 6. Local users are not the only source, there things like LDAP and AD.
7. POSIX allows it:
* https://github.com/systemd/systemd/issues/6237#issuecomment-...
-
Systemd Rolling Out "run0" As sudo Alternative
> I for one love to type out 13 extra characters
FWIW, systemd is normally pretty good at providing autocomplete suggestions, so even if you don't want to set up an alias you'll probably just have to type `--b ` to set it.
> I wonder what random ASCII escape sequences we can send.
According to the man page source[0]:
> The color specified should be an ANSI X3.64 SGR background color, i.e. strings such as `40`, `41`, …, `47`, `48;2;…`, `48;5;…`
and a link to the relevant Wikipedia page[1]. Given systemd's generally decent track record wrt defects and security issues, and the simplicity of valid colour values, I expect there's a fairly robust parameter verifier in there.
In fact, given the focus on starting the elevated command in a highly controlled environment, I'd expect the colour codes to be output to the originating terminal, not forwarded to the secure pty. That way, the only thing malformed escapes can affect is your own process, which you already have full control over anyway.
(Happy to be shown if that's a mistaken expectation though.)
[0] https://github.com/systemd/systemd/blob/main/man/run0.xml
[1] https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_G...
- Crash-only software: More than meets the eye
What are some alternatives?
sudo - Utility to execute a command as another user
openrc - The OpenRC init system
doas - A port of OpenBSD's doas which runs on FreeBSD, Linux, NetBSD, and illumos
tini - A tiny but valid `init` for containers
tempfile - Temporary file library for rust
inotify-tools - inotify-tools is a C library and a set of command-line programs providing a simple interface to inotify.
OpenDoas - A portable fork of the OpenBSD `doas` command
s6 - The s6 supervision suite.
nomicon - The Dark Arts of Advanced and Unsafe Rust Programming
earlyoom - earlyoom - Early OOM Daemon for Linux
sudo - Utility to execute a command as another user
supervisor - Supervisor process control system for Unix (supervisord)