test-execute: add test case for PrivateTmp=disconnected + DefaultDependencies=no + sandboxing disabled via '+' prefix

This commit is contained in:
Mike Yuan
2025-05-27 23:18:00 +02:00
parent 8b0a0298b7
commit c4f79e098b
2 changed files with 14 additions and 0 deletions
@@ -0,0 +1,10 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateTmp=disconnected with DefaultDependencies=no + no sandboxing
DefaultDependencies=no
[Service]
ExecStart=+touch /tmp/test-exec_privatetmp_disconnected
ExecStart=+sh -x -c 'test x$$TMPDIR = x'
Type=oneshot
PrivateTmp=disconnected