2017-05-13 14:51:45 +03:00
========
AppArmor
========
What is AppArmor?
=================
2010-07-30 01:48:09 +04:00
AppArmor is MAC style security extension for the Linux kernel. It implements
a task centered policy, with task "profiles" being created and loaded
from user space. Tasks on the system that do not have a profile defined for
them run in an unconfined state which is equivalent to standard Linux DAC
permissions.
2017-05-13 14:51:45 +03:00
How to enable/disable
=====================
set `` CONFIG_SECURITY_APPARMOR=y ``
2010-07-30 01:48:09 +04:00
2017-05-13 14:51:45 +03:00
If AppArmor should be selected as the default security module then set::
2010-07-30 01:48:09 +04:00
2017-05-13 14:51:45 +03:00
CONFIG_DEFAULT_SECURITY="apparmor"
CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1
2010-07-30 01:48:09 +04:00
Build the kernel
If AppArmor is not the default security module it can be enabled by passing
2017-05-13 14:51:45 +03:00
`` security=apparmor `` on the kernel's command line.
2010-07-30 01:48:09 +04:00
If AppArmor is the default security module it can be disabled by passing
2017-05-13 14:51:45 +03:00
`` apparmor=0, security=XXXX `` (where `` XXXX `` is valid security module), on the
kernel's command line.
2010-07-30 01:48:09 +04:00
For AppArmor to enforce any restrictions beyond standard Linux DAC permissions
policy must be loaded into the kernel from user space (see the Documentation
and tools links).
2017-05-13 14:51:45 +03:00
Documentation
=============
2010-07-30 01:48:09 +04:00
2017-05-13 14:51:45 +03:00
Documentation can be found on the wiki, linked below.
2010-07-30 01:48:09 +04:00
2017-05-13 14:51:45 +03:00
Links
=====
2010-07-30 01:48:09 +04:00
Mailing List - apparmor@lists.ubuntu.com
2017-05-13 14:51:45 +03:00
2018-05-05 15:22:16 +03:00
Wiki - http://wiki.apparmor.net
2017-05-13 14:51:45 +03:00
2018-05-05 15:22:16 +03:00
User space tools - https://gitlab.com/apparmor
2017-05-13 14:51:45 +03:00
2018-05-05 15:22:16 +03:00
Kernel module - git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor