1 # SPDX-License-Identifier: LGPL-2.1-or-later
3 Description=Test Group=group is applied after PrivateDevices=yes
10 # Check the group applied
11 ExecStart=sh -x -c 'test "$$(id -n -g)" = "daemon"'
13 # Check that the namespace applied
14 ExecStart=sh -c 'test ! -c /dev/kmsg'
16 # Check that the owning group of a node is not daemon (should be the host root)
17 ExecStart=sh -x -c 'test ! "$$(stat -c %%G /dev/stderr)" = "daemon"'