mirror of
https://github.com/systemd/systemd
synced 2024-10-15 20:45:09 +00:00
10 lines
280 B
SYSTEMD
10 lines
280 B
SYSTEMD
|
# 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
|