1# SPDX-License-Identifier: LGPL-2.1-or-later 2[Unit] 3Description=Test CAP_SYSLOG for ProtectKernelLogs=yes 4 5[Service] 6ProtectKernelLogs=yes 7# sed: remove dropped (cap_xxx-[epi]) and IAB capabilities from the output 8ExecStart=/bin/sh -x -c '! capsh --print | sed -re "s/[^ ]+?\-[epi]+//g" -e '/IAB/d' | grep cap_syslog' 9Type=oneshot 10