diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-02-16 16:45:38 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-02-21 16:43:36 +0100 |
commit | 72a1db0bb2820917f2dc08a40a6d8ab2404ec515 (patch) | |
tree | 901eb52a77bc6e4344ce4b09841b08031a06ef6a /test | |
parent | namespace: protect bpf file system as part of ProtectKernelTunables= (diff) | |
download | systemd-72a1db0bb2820917f2dc08a40a6d8ab2404ec515.tar.xz systemd-72a1db0bb2820917f2dc08a40a6d8ab2404ec515.zip |
test: don't complain if bpffs is world-writable
Apparently, world-writable bpffs is intended by the kernel folks, hence
let's make sure we don't choke on it on our tests.
Diffstat (limited to 'test')
-rw-r--r-- | test/test-execute/exec-dynamicuser-statedir.service | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-execute/exec-dynamicuser-statedir.service b/test/test-execute/exec-dynamicuser-statedir.service index cc09c938cf..5ea6d9da42 100644 --- a/test/test-execute/exec-dynamicuser-statedir.service +++ b/test/test-execute/exec-dynamicuser-statedir.service @@ -12,7 +12,7 @@ ExecStart=/bin/sh -c 'test -f /var/lib/private/waldo/yay' ExecStart=/bin/sh -c 'test -f /var/lib/private/quux/pief/yayyay' # Make sure that /var/lib/private/waldo is really the only writable directory besides the obvious candidates -ExecStart=/bin/sh -x -c 'test $$(find / -type d -writable 2> /dev/null | egrep -v -e \'^(/var/tmp$$|/tmp$$|/proc/|/dev/mqueue$$|/dev/shm$$)\' | sort -u | tr -d '\\\\n') = /var/lib/private/quux/pief/var/lib/private/waldo' +ExecStart=/bin/sh -x -c 'test $$(find / -type d -writable 2> /dev/null | egrep -v -e \'^(/var/tmp$$|/tmp$$|/proc/|/dev/mqueue$$|/dev/shm$$|/sys/fs/bpf$$)\' | sort -u | tr -d '\\\\n') = /var/lib/private/quux/pief/var/lib/private/waldo' Type=oneshot DynamicUser=yes |