File: exec-ambientcapabilities.service

package info (click to toggle)
systemd 241-7~deb10u8
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 59,140 kB
  • sloc: ansic: 355,293; xml: 59,096; python: 21,623; sh: 6,686; perl: 1,649; makefile: 265; awk: 90; lisp: 13; sed: 1
file content (8 lines) | stat: -rw-r--r-- 241 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
[Unit]
Description=Test for AmbientCapabilities (daemon)

[Service]
ExecStart=/bin/sh -x -c 'c=$$(grep "CapAmb:" /proc/self/status); test "$$c" = "CapAmb:	0000000000002001"'
Type=oneshot
User=daemon
AmbientCapabilities=CAP_CHOWN CAP_NET_RAW