Skip to content

Commit 26fccd9

Browse files
keesJonathan Corbet
authored andcommitted
doc: ReSTify apparmor.txt
Adjusts for ReST markup and moves under LSM admin guide. Acked-by: John Johansen <john.johansen@canonical.com> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 229fd05 commit 26fccd9

6 files changed

Lines changed: 28 additions & 16 deletions

File tree

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,51 @@
1-
--- What is AppArmor? ---
1+
========
2+
AppArmor
3+
========
4+
5+
What is AppArmor?
6+
=================
27

38
AppArmor is MAC style security extension for the Linux kernel. It implements
49
a task centered policy, with task "profiles" being created and loaded
510
from user space. Tasks on the system that do not have a profile defined for
611
them run in an unconfined state which is equivalent to standard Linux DAC
712
permissions.
813

9-
--- How to enable/disable ---
14+
How to enable/disable
15+
=====================
16+
17+
set ``CONFIG_SECURITY_APPARMOR=y``
1018

11-
set CONFIG_SECURITY_APPARMOR=y
19+
If AppArmor should be selected as the default security module then set::
1220

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
1623

1724
Build the kernel
1825

1926
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.
2128

2229
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.
2532

2633
For AppArmor to enforce any restrictions beyond standard Linux DAC permissions
2734
policy must be loaded into the kernel from user space (see the Documentation
2835
and tools links).
2936

30-
--- Documentation ---
37+
Documentation
38+
=============
3139

32-
Documentation can be found on the wiki.
40+
Documentation can be found on the wiki, linked below.
3341

34-
--- Links ---
42+
Links
43+
=====
3544

3645
Mailing List - apparmor@lists.ubuntu.com
46+
3747
Wiki - http://apparmor.wiki.kernel.org/
48+
3849
User space tools - https://launchpad.net/apparmor
50+
3951
Kernel module - git://git.kernel.org/pub/scm/linux/kernel/git/jj/apparmor-dev.git

‎Documentation/admin-guide/LSM/index.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ the one "major" module (e.g. SELinux) if there is one configured.
3333
.. toctree::
3434
:maxdepth: 1
3535

36+
apparmor
3637
SELinux

‎Documentation/security/00-INDEX‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ Smack.txt
44
- documentation on the Smack Linux Security Module.
55
Yama.txt
66
- documentation on the Yama Linux Security Module.
7-
apparmor.txt
8-
- documentation on the AppArmor security extension.
97
keys-ecryptfs.txt
108
- description of the encryption keys for the ecryptfs filesystem.
119
keys-request-key.txt

‎MAINTAINERS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11560,6 +11560,7 @@ W: apparmor.wiki.kernel.org
1156011560
T: git git://git.kernel.org/pub/scm/linux/kernel/git/jj/apparmor-dev.git
1156111561
S: Supported
1156211562
F: security/apparmor/
11563+
F: Documentation/admin-guide/LSM/apparmor.rst
1156311564

1156411565
LOADPIN SECURITY MODULE
1156511566
M: Kees Cook <keescook@chromium.org>

‎security/apparmor/match.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ void aa_dfa_free_kref(struct kref *kref)
226226
* @flags: flags controlling what type of accept tables are acceptable
227227
*
228228
* Unpack a dfa that has been serialized. To find information on the dfa
229-
* format look in Documentation/security/apparmor.txt
229+
* format look in Documentation/admin-guide/LSM/apparmor.rst
230230
* Assumes the dfa @blob stream has been aligned on a 8 byte boundary
231231
*
232232
* Returns: an unpacked dfa ready for matching or ERR_PTR on failure

‎security/apparmor/policy_unpack.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* License.
1414
*
1515
* AppArmor uses a serialized binary format for loading policy. To find
16-
* policy format documentation look in Documentation/security/apparmor.txt
16+
* policy format documentation see Documentation/admin-guide/LSM/apparmor.rst
1717
* All policy is validated before it is used.
1818
*/
1919

0 commit comments

Comments
 (0)