summaryrefslogtreecommitdiffstats
path: root/test/test-execute/exec-systemcallfilter-nonewprivileges-protectclock.service
blob: f33a2a05c4b40e917089cf6a9b1e9a8b992cfa29 (plain)
1
2
3
4
5
6
7
8
9
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test no_new_privs is unset for ProtectClock and non-root user

[Service]
ExecStart=/bin/sh -x -c 'c=$$(cat /proc/self/status | grep "NoNewPrivs:	"); test "$$c" = "NoNewPrivs:	0"'
Type=oneshot
User=1
ProtectClock=yes