summaryrefslogtreecommitdiff
path: root/src/test/test-cgroup-util.c
diff options
context:
space:
mode:
authorMichal Sekletar <msekletar@users.noreply.github.com>2018-03-07 16:41:41 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-03-07 16:41:41 +0100
commita9e8ecf0374c675831208559ba37749a8f9719ef (patch)
tree2a9f495f4ceab9abf524b6073c31863fd72338d3 /src/test/test-cgroup-util.c
parent6f10433df709511939469276a89a656c802c3150 (diff)
downloadsystemd-a9e8ecf0374c675831208559ba37749a8f9719ef.tar.gz
core: don't setup init.scope in test mode (#8380)
Reproducer: $ meson build && cd build $ ninja $ sudo useradd test $ sudo su test $ ./systemd --system --test ... Failed to create /user.slice/user-1000.slice/session-6.scope/init.scope control group: Permission denied Failed to allocate manager object: Permission denied Above error message is caused by the fact that user test didn't have its own session and we tried to set up init.scope already running as user test in the directory owned by different user. Let's skip setting up init.scope altogether since we won't be launching processes anyway.
Diffstat (limited to 'src/test/test-cgroup-util.c')
0 files changed, 0 insertions, 0 deletions