]> git.ipfire.org Git - thirdparty/systemd.git/commit
run0: allow explicit control of service manager activation for run0 sessions
authorLennart Poettering <lennart@poettering.net>
Tue, 14 Jan 2025 10:50:52 +0000 (11:50 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 15 Jan 2025 16:03:21 +0000 (17:03 +0100)
commitef5f72437e661b603e4b05ad89446883f80a29c3
tree8ece39d8807e3a2133f29c5bc3ece0681d55301b
parentdb320d97ca3821fe32b9d0ab2771cf886a866b06
run0: allow explicit control of service manager activation for run0 sessions

This adds a new --lightweight=yes/no switch which allows controlling
whether the invoked service will have the service manager around or not.

Moreover, this changes that if the target user is root it will now
support to the lightweight mode, i.e. run0 towards root will no longer
pull in the service manager (a real tty login via getty still will
though!).

My thinking here is that quickly raising privileges via run0 probably
shouldn't be considered a proper login but just something short lived,
temporary for a single command or similar.
man/run0.xml
src/run/run.c
src/shared/parse-argument.c
src/shared/parse-argument.h
test/units/TEST-35-LOGIN.sh