blob: 3e9734bd0e0586bb737e65c45bd2e6d6fbf0e383 [file] [log] [blame]
Kees Cook26fccd92017-05-13 04:51:45 -07001========
2AppArmor
3========
4
5What is AppArmor?
6=================
John Johansenc1c124e2010-07-29 14:48:09 -07007
8AppArmor is MAC style security extension for the Linux kernel. It implements
9a task centered policy, with task "profiles" being created and loaded
10from user space. Tasks on the system that do not have a profile defined for
11them run in an unconfined state which is equivalent to standard Linux DAC
12permissions.
13
Kees Cook26fccd92017-05-13 04:51:45 -070014How to enable/disable
15=====================
John Johansenc1c124e2010-07-29 14:48:09 -070016
Kees Cook26fccd92017-05-13 04:51:45 -070017set ``CONFIG_SECURITY_APPARMOR=y``
John Johansenc1c124e2010-07-29 14:48:09 -070018
Kees Cook26fccd92017-05-13 04:51:45 -070019If AppArmor should be selected as the default security module then set::
20
21 CONFIG_DEFAULT_SECURITY="apparmor"
22 CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1
John Johansenc1c124e2010-07-29 14:48:09 -070023
24Build the kernel
25
26If AppArmor is not the default security module it can be enabled by passing
Kees Cook26fccd92017-05-13 04:51:45 -070027``security=apparmor`` on the kernel's command line.
John Johansenc1c124e2010-07-29 14:48:09 -070028
29If AppArmor is the default security module it can be disabled by passing
Kees Cook26fccd92017-05-13 04:51:45 -070030``apparmor=0, security=XXXX`` (where ``XXXX`` is valid security module), on the
31kernel's command line.
John Johansenc1c124e2010-07-29 14:48:09 -070032
33For AppArmor to enforce any restrictions beyond standard Linux DAC permissions
34policy must be loaded into the kernel from user space (see the Documentation
35and tools links).
36
Kees Cook26fccd92017-05-13 04:51:45 -070037Documentation
38=============
John Johansenc1c124e2010-07-29 14:48:09 -070039
Kees Cook26fccd92017-05-13 04:51:45 -070040Documentation can be found on the wiki, linked below.
John Johansenc1c124e2010-07-29 14:48:09 -070041
Kees Cook26fccd92017-05-13 04:51:45 -070042Links
43=====
John Johansenc1c124e2010-07-29 14:48:09 -070044
45Mailing List - apparmor@lists.ubuntu.com
Kees Cook26fccd92017-05-13 04:51:45 -070046
John Johansenc1c124e2010-07-29 14:48:09 -070047Wiki - http://apparmor.wiki.kernel.org/
Kees Cook26fccd92017-05-13 04:51:45 -070048
John Johansenc1c124e2010-07-29 14:48:09 -070049User space tools - https://launchpad.net/apparmor
Kees Cook26fccd92017-05-13 04:51:45 -070050
John Johansenc1c124e2010-07-29 14:48:09 -070051Kernel module - git://git.kernel.org/pub/scm/linux/kernel/git/jj/apparmor-dev.git