From 875afa02fabe1dad5aa3d1e9bff89d493a369fd0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 12 Nov 2021 13:41:59 +0100 Subject: tests: add test case for UMask=+BindPaths= combination Inspired by the test case described in #19899 --- test/test-execute/exec-umask-namespace.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/test-execute/exec-umask-namespace.service (limited to 'test/test-execute') 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 -- cgit v1.2.1