2 # SPDX-License-Identifier: LGPL-2.1-or-later
4 # Basic tests for types creating fifos
12 systemd-tmpfiles
--dry-run --create - <<EOF
13 p /tmp/p/fifo1 0666 - - - -
16 test ! -p /tmp
/p
/fifo1
18 systemd-tmpfiles
--create - <<EOF
19 p /tmp/p/fifo1 0666 - - - -
23 test "$(stat -c %U:%G:%a /tmp/p/fifo1)" = "root:root:666"
25 # Refuse to overwrite an existing file. Error is not propagated.
26 systemd-tmpfiles
--create - <<EOF
27 p /tmp/p/f1 0666 - - - -
32 # unless '+' prefix is used
33 systemd-tmpfiles
--create - <<EOF
34 p+ /tmp/p/f1 0666 - - - -
38 test "$(stat -c %U:%G:%a /tmp/p/f1)" = "root:root:666"
44 # #ln -s /root /tmp/F/daemon/unsafe-symlink
45 # chown -R --no-dereference daemon:daemon /tmp/p/daemon
47 # systemd-tmpfiles --create - <<EOF
48 # p /tmp/p/daemon/fifo2 0666 daemon daemon - -