HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

test/test-execute/exec-privatedevices-yes-capability-sys-rawio.service

Git blob: 4233d477a2d4c195394b0af2900c248437d5d5bf

Lines 1–10 of 10

# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_SYS_RAWIO capability for PrivateDevices=yes
 
[Service]
PrivateDevices=yes
# sed: remove dropped (cap_xxx-[epi]) and IAB capabilities from the output
ExecStart=bash -x -c '! capsh --print | sed -re "s/[^ ]+?\-[epi]+//g" -e '/IAB/d' | grep cap_sys_rawio'
Type=oneshot