core: Add AppArmor profile switching
This permit to switch to a specific apparmor profile when starting a daemon. This will result in a non operation if apparmor is disabled. It also add a new build requirement on libapparmor for using this feature.
This commit is contained in:
committed by
Lennart Poettering
parent
37f78db2f4
commit
eef65bf3ee
@@ -967,6 +967,19 @@
|
||||
for details.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>AppArmorProfile=</varname></term>
|
||||
|
||||
<listitem><para>Take a profile name as argument.
|
||||
The process executed by the unit will switch to
|
||||
this profile when started. Profiles must already
|
||||
be loaded in the kernel, or the unit will fail.
|
||||
This result in a non operation if AppArmor is not
|
||||
enabled. If prefixed by <literal>-</literal>, all errors
|
||||
will be ignored.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>IgnoreSIGPIPE=</varname></term>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user