923a60
From 734c3a184c3b196412e15e4db1b7419f13b901b4 Mon Sep 17 00:00:00 2001
923a60
From: Ismo Puustinen <ismo.puustinen@intel.com>
923a60
Date: Mon, 11 Jan 2016 09:36:14 +0200
923a60
Subject: [PATCH] man: add AmbientCapabilities entry.
923a60
923a60
Cherry-picked from: ece8797
923a60
Resolves: #1387398
923a60
---
923a60
 man/systemd.exec.xml | 29 +++++++++++++++++++++++++++++
923a60
 1 file changed, 29 insertions(+)
923a60
923a60
diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml
923a60
index aa5831cc2c..1b14ced788 100644
923a60
--- a/man/systemd.exec.xml
923a60
+++ b/man/systemd.exec.xml
923a60
@@ -766,6 +766,35 @@
923a60
         settings.</para></listitem>
923a60
       </varlistentry>
923a60
 
923a60
+      <varlistentry>
923a60
+        <term><varname>AmbientCapabilities=</varname></term>
923a60
+
923a60
+        <listitem><para>Controls which capabilities to include in the
923a60
+        ambient capability set for the executed process. Takes a
923a60
+        whitespace-separated list of capability names as read by
923a60
+        <citerefentry project='mankier'><refentrytitle>cap_from_name</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
923a60
+        e.g. <constant>CAP_SYS_ADMIN</constant>,
923a60
+        <constant>CAP_DAC_OVERRIDE</constant>,
923a60
+        <constant>CAP_SYS_PTRACE</constant>. This option may appear more than
923a60
+        once in which case the ambient capability sets are merged.
923a60
+        If the list of capabilities is prefixed with <literal>~</literal>, all
923a60
+        but the listed capabilities will be included, the effect of the
923a60
+        assignment inverted. If the empty string is
923a60
+        assigned to this option, the ambient capability set is reset to
923a60
+        the empty capability set, and all prior settings have no effect.
923a60
+        If set to <literal>~</literal> (without any further argument), the
923a60
+        ambient capability set is reset to the full set of available
923a60
+        capabilities, also undoing any previous settings. Note that adding
923a60
+        capabilities to ambient capability set adds them to the process's
923a60
+        inherited capability set.
923a60
+        </para><para>
923a60
+        Ambient capability sets are useful if you want to execute a process
923a60
+        as a non-privileged user but still want to give it some capabilities.
923a60
+        Note that in this case option <constant>keep-caps</constant> is
923a60
+        automatically added to <varname>SecureBits=</varname> to retain the
923a60
+        capabilities over the user change.</para></listitem>
923a60
+      </varlistentry>
923a60
+
923a60
       <varlistentry>
923a60
         <term><varname>SecureBits=</varname></term>
923a60
         <listitem><para>Controls the secure bits set for the executed