hwdb: fix screen rotation for EXO Wings 2in1 w1125 (#36283)
[systemd.io.git] / test / test-execute / exec-privatedevices-yes-with-group.service
blob094ac227247a533139c31a2ab7697c6d31870c7a
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 [Unit]
3 Description=Test Group=group is applied after PrivateDevices=yes
5 [Service]
6 PrivateDevices=yes
7 Group=daemon
8 Type=oneshot
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"'