diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-11-12 13:41:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-11-12 16:02:26 +0100 |
commit | 875afa02fabe1dad5aa3d1e9bff89d493a369fd0 (patch) | |
tree | dc8a3150af01a5917739b5a758d3148309b6fc46 /test/test-execute | |
parent | 30443439274cc223583c6c57f7d9041e440e346f (diff) | |
download | systemd-875afa02fabe1dad5aa3d1e9bff89d493a369fd0.tar.gz |
tests: add test case for UMask=+BindPaths= combination
Inspired by the test case described in #19899
Diffstat (limited to 'test/test-execute')
-rw-r--r-- | test/test-execute/exec-umask-namespace.service | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test-execute/exec-umask-namespace.service b/test/test-execute/exec-umask-namespace.service new file mode 100644 index 0000000000..8419c86c9a --- /dev/null +++ b/test/test-execute/exec-umask-namespace.service @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +[Unit] +Description=Test for UMask= + namespacing + +[Service] +ExecStart=/bin/ls -lahd /tmp/subdir +Type=oneshot +User=65534 +Group=65534 +TemporaryFileSystem=/tmp:ro +BindPaths=/etc:/tmp/subdir/subsub +UMask=0007 |