]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemd: don't try to run as user manager when called without any arguments
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 16 Feb 2021 16:40:56 +0000 (17:40 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Feb 2021 21:35:49 +0000 (22:35 +0100)
commit9a9ca408030829cbaea829cd38d92fbe6297a09d
tree0c5e8e45917deb86a34762458061e84c359d22fd
parent696e5a8a73a4441f5aea4b01715d4863051647d6
systemd: don't try to run as user manager when called without any arguments

It's better for users if programs don't do "significant" things too easily, and
should be especially conservative when called without any arguments whatsoever.
So far systemd would would try to launch itself as a user manager and fail on
some cgroup permission stuff. systemd --user is run execlusively from user@.service
and there we call it with --user. Calls to the binary without any arguments as
non-pid1 are almost always a mistake.

https://github.com/systemd/systemd/issues/18419#issuecomment-779422571
src/core/main.c