HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

test/test-execute/exec-ambientcapabilities-nfsnobody.service

Git blob: 6670018baaa6127a031b3df114359a92d9c6e18f

Lines 1–10 of 10

# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for AmbientCapabilities
 
[Service]
ExecStart=bash -x -c 'c=$$(grep "CapAmb:" /proc/self/status); test "$$c" = "CapAmb:	0000000000002001"'
Type=oneshot
User=nfsnobody
AmbientCapabilities=CAP_CHOWN CAP_NET_RAW