summaryrefslogtreecommitdiffstats
path: root/test/test-execute/exec-capabilityboundingset-simple.service
blob: be5a5e5b87f7b36fd6c73ee91c1dc38bf8524096 (plain)
1
2
3
4
5
6
7
8
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for CapabilityBoundingSet

[Service]
ExecStart=/bin/sh -x -c 'c=$$(capsh --print | grep "Bounding set "); test "$$c" = "Bounding set =cap_fowner,cap_kill"'
Type=oneshot
CapabilityBoundingSet=CAP_FOWNER CAP_KILL