Ismo Puustinen 755d4b67a4 capabilities: added support for ambient capabilities.
This patch adds support for ambient capabilities in service files. The
idea with ambient capabilities is that the execed processes can run with
non-root user and get some inherited capabilities, without having any
need to add the capabilities to the executable file.

You need at least Linux 4.3 to use ambient capabilities. SecureBit
keep-caps is automatically added when you use ambient capabilities and
wish to change the user.

An example system service file might look like this:

[Unit]
Description=Service for testing caps

[Service]
ExecStart=/usr/bin/sleep 10000
User=nobody
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW

After starting the service it has these capabilities:

CapInh: 0000000000003000
CapPrm: 0000000000003000
CapEff: 0000000000003000
CapBnd: 0000003fffffffff
CapAmb: 0000000000003000
2016-01-12 12:14:50 +02:00
2015-07-06 17:47:38 +02:00
2016-01-11 13:55:48 +02:00
2015-08-31 18:12:37 +02:00
2016-01-11 19:39:59 +01:00
2015-11-23 12:32:59 +01:00
2015-06-03 00:22:53 +02:00
2016-01-11 19:39:59 +01:00
2015-07-27 20:15:34 +02:00

systemd - System and Service Manager

Build Status
Coverity Scan Status

Details

  • General information about systemd can be found in the systemd Wiki
  • Information about build requirements are provided in the README file
Description
No description provided
Readme 825 MiB
Languages
C 88.8%
Shell 5.2%
Python 4.7%
Meson 1.1%