|
1 | | ---- What is AppArmor? --- |
| 1 | +======== |
| 2 | +AppArmor |
| 3 | +======== |
| 4 | + |
| 5 | +What is AppArmor? |
| 6 | +================= |
2 | 7 |
|
3 | 8 | AppArmor is MAC style security extension for the Linux kernel. It implements |
4 | 9 | a task centered policy, with task "profiles" being created and loaded |
5 | 10 | from user space. Tasks on the system that do not have a profile defined for |
6 | 11 | them run in an unconfined state which is equivalent to standard Linux DAC |
7 | 12 | permissions. |
8 | 13 |
|
9 | | ---- How to enable/disable --- |
| 14 | +How to enable/disable |
| 15 | +===================== |
| 16 | + |
| 17 | +set ``CONFIG_SECURITY_APPARMOR=y`` |
10 | 18 |
|
11 | | -set CONFIG_SECURITY_APPARMOR=y |
| 19 | +If AppArmor should be selected as the default security module then set:: |
12 | 20 |
|
13 | | -If AppArmor should be selected as the default security module then |
14 | | - set CONFIG_DEFAULT_SECURITY="apparmor" |
15 | | - and CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1 |
| 21 | + CONFIG_DEFAULT_SECURITY="apparmor" |
| 22 | + CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1 |
16 | 23 |
|
17 | 24 | Build the kernel |
18 | 25 |
|
19 | 26 | If AppArmor is not the default security module it can be enabled by passing |
20 | | -security=apparmor on the kernel's command line. |
| 27 | +``security=apparmor`` on the kernel's command line. |
21 | 28 |
|
22 | 29 | If AppArmor is the default security module it can be disabled by passing |
23 | | -apparmor=0, security=XXXX (where XXX is valid security module), on the |
24 | | -kernel's command line |
| 30 | +``apparmor=0, security=XXXX`` (where ``XXXX`` is valid security module), on the |
| 31 | +kernel's command line. |
25 | 32 |
|
26 | 33 | For AppArmor to enforce any restrictions beyond standard Linux DAC permissions |
27 | 34 | policy must be loaded into the kernel from user space (see the Documentation |
28 | 35 | and tools links). |
29 | 36 |
|
30 | | ---- Documentation --- |
| 37 | +Documentation |
| 38 | +============= |
31 | 39 |
|
32 | | -Documentation can be found on the wiki. |
| 40 | +Documentation can be found on the wiki, linked below. |
33 | 41 |
|
34 | | ---- Links --- |
| 42 | +Links |
| 43 | +===== |
35 | 44 |
|
36 | 45 | Mailing List - apparmor@lists.ubuntu.com |
| 46 | + |
37 | 47 | Wiki - http://apparmor.wiki.kernel.org/ |
| 48 | + |
38 | 49 | User space tools - https://launchpad.net/apparmor |
| 50 | + |
39 | 51 | Kernel module - git://git.kernel.org/pub/scm/linux/kernel/git/jj/apparmor-dev.git |
0 commit comments