]> git.ipfire.org Git - thirdparty/systemd.git/commit
run0: Add --empower
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 30 Oct 2025 11:28:19 +0000 (12:28 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 30 Oct 2025 14:28:36 +0000 (15:28 +0100)
commit5cabeed80b30972babc7a082ca794c6b197e72ab
tree024e4a33e51d9db78987b8187de913b77e1a424c
parent19bf12bff36cf1e6dbc282c09742f951e380cc6e
run0: Add --empower

--empower gives full privileges to a non-root user. Currently this
includes all capabilities but we leave the option open to add more
privileges via this option in the future.

Why is this useful? When running privileged development or debugging
commands from your home directory (think bpftrace, strace and such),
you want any files written by these tools to be owned by your current
user, and not by the root user. run0 --empower will allow you to run
all privileged operations (assuming the tools check for capabilities
and not UIDs), while any files written by the tools will still be owned
by the current user.
man/run0.xml
shell-completion/bash/run0
shell-completion/zsh/_run0
src/run/run.c
test/units/TEST-74-AUX-UTILS.run.sh