summaryrefslogtreecommitdiffstats
path: root/test/test-execute/exec-systemcallfilter-nonewprivileges.service
blob: 8bfd0a79d9a3ebda58fd019945d9b682a431195c (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 SystemCallFilter 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
SystemCallFilter=@system-service