understand / consider systemd ApparmorProfile= option

Information

ID: 355
PHID: PHID-TASK-eguhfbdj3ifhqkl23cy3
Author: Patrick
Status at Migration Time: resolved
Priority at Migration Time: Normal

Description

Once #Whonix will be based on #Debian_Stretch, #systemd will provide an ApparmorProfile= option.

Quoted from https://wiki.debian.org/AppArmor/Progress:

Integrate with systemd by: waiting for systemd v210+, which has a ApparmorProfile= option, or ship upstart’s /lib/init/apparmor-profile-load as an apparmor helper script and call it in systemd’s ExecPreStart=

Quoted from http://manpages.debian.org/cgi-bin/man.cgi?&query=systemd.exec:

  AppArmorProfile=
      Takes 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 "-", all
      errors will be ignored.

#control-port-filter-python’s AppArmor profile /etc/apparmor.d/usr.sbin.cpfpd is effective without that option. One can verify that by test wise out commenting something form the profile. After reboot, denied messages would pop up.

TODO #research:

  • What’s the ApparmorProfile= option good for?
  • Should we use it?
  • Should we prefix by -?

Comments


HulaHoop

2015-06-18 01:26:15 UTC


troubadour

2015-06-18 21:05:22 UTC


HulaHoop

2015-06-19 16:31:13 UTC


HulaHoop

2015-06-19 17:01:09 UTC


Patrick

2015-06-20 19:51:51 UTC


Patrick

2016-02-10 00:38:08 UTC


Patrick

2016-02-10 00:40:00 UTC