HALF ECHO LEARN / REFERENCE COLLECTION
v262.2test/test-execute/exec-protectkernelmodules-yes-capabilities.service
Git blob: cfd0ac1ff70055f4c49f8bb4da5ddd7ed639ecb6
Lines 1–10 of 10
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test CAP_SYS_MODULE for ProtectKernelModules=yes
[Service]
ProtectKernelModules=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_module'
Type=oneshot