diff options
author | Kees Cook <keescook@chromium.org> | 2017-05-13 07:51:44 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2017-05-18 12:31:30 -0400 |
commit | 229fd05c565eb931aa7c59c9d740e2047701a4ad (patch) | |
tree | 02fe4d7959df807381453555d232861d30dc651e | |
parent | 504f231cda569b5e4e48d81a35376641552a5092 (diff) |
doc: ReSTify SELinux.txt
Adjusts for ReST markup and moves under LSM admin guide.
Cc: Paul Moore <paul@paul-moore.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
-rw-r--r-- | Documentation/admin-guide/LSM/SELinux.rst (renamed from Documentation/security/SELinux.txt) | 18 | ||||
-rw-r--r-- | Documentation/admin-guide/LSM/index.rst | 5 | ||||
-rw-r--r-- | Documentation/security/00-INDEX | 2 | ||||
-rw-r--r-- | MAINTAINERS | 1 | ||||
-rw-r--r-- | scripts/selinux/README | 2 |
5 files changed, 19 insertions, 9 deletions
diff --git a/Documentation/security/SELinux.txt b/Documentation/admin-guide/LSM/SELinux.rst index 07eae00f3314..f722c9b4173a 100644 --- a/Documentation/security/SELinux.txt +++ b/Documentation/admin-guide/LSM/SELinux.rst | |||
@@ -1,27 +1,33 @@ | |||
1 | ======= | ||
2 | SELinux | ||
3 | ======= | ||
4 | |||
1 | If you want to use SELinux, chances are you will want | 5 | If you want to use SELinux, chances are you will want |
2 | to use the distro-provided policies, or install the | 6 | to use the distro-provided policies, or install the |
3 | latest reference policy release from | 7 | latest reference policy release from |
8 | |||
4 | http://oss.tresys.com/projects/refpolicy | 9 | http://oss.tresys.com/projects/refpolicy |
5 | 10 | ||
6 | However, if you want to install a dummy policy for | 11 | However, if you want to install a dummy policy for |
7 | testing, you can do using 'mdp' provided under | 12 | testing, you can do using ``mdp`` provided under |
8 | scripts/selinux. Note that this requires the selinux | 13 | scripts/selinux. Note that this requires the selinux |
9 | userspace to be installed - in particular you will | 14 | userspace to be installed - in particular you will |
10 | need checkpolicy to compile a kernel, and setfiles and | 15 | need checkpolicy to compile a kernel, and setfiles and |
11 | fixfiles to label the filesystem. | 16 | fixfiles to label the filesystem. |
12 | 17 | ||
13 | 1. Compile the kernel with selinux enabled. | 18 | 1. Compile the kernel with selinux enabled. |
14 | 2. Type 'make' to compile mdp. | 19 | 2. Type ``make`` to compile ``mdp``. |
15 | 3. Make sure that you are not running with | 20 | 3. Make sure that you are not running with |
16 | SELinux enabled and a real policy. If | 21 | SELinux enabled and a real policy. If |
17 | you are, reboot with selinux disabled | 22 | you are, reboot with selinux disabled |
18 | before continuing. | 23 | before continuing. |
19 | 4. Run install_policy.sh: | 24 | 4. Run install_policy.sh:: |
25 | |||
20 | cd scripts/selinux | 26 | cd scripts/selinux |
21 | sh install_policy.sh | 27 | sh install_policy.sh |
22 | 28 | ||
23 | Step 4 will create a new dummy policy valid for your | 29 | Step 4 will create a new dummy policy valid for your |
24 | kernel, with a single selinux user, role, and type. | 30 | kernel, with a single selinux user, role, and type. |
25 | It will compile the policy, will set your SELINUXTYPE to | 31 | It will compile the policy, will set your ``SELINUXTYPE`` to |
26 | dummy in /etc/selinux/config, install the compiled policy | 32 | ``dummy`` in ``/etc/selinux/config``, install the compiled policy |
27 | as 'dummy', and relabel your filesystem. | 33 | as ``dummy``, and relabel your filesystem. |
diff --git a/Documentation/admin-guide/LSM/index.rst b/Documentation/admin-guide/LSM/index.rst index 7e892b9b58aa..cc0e04d63bf9 100644 --- a/Documentation/admin-guide/LSM/index.rst +++ b/Documentation/admin-guide/LSM/index.rst | |||
@@ -29,3 +29,8 @@ will always include the capability module. The list reflects the | |||
29 | order in which checks are made. The capability module will always | 29 | order in which checks are made. The capability module will always |
30 | be first, followed by any "minor" modules (e.g. Yama) and then | 30 | be first, followed by any "minor" modules (e.g. Yama) and then |
31 | the one "major" module (e.g. SELinux) if there is one configured. | 31 | the one "major" module (e.g. SELinux) if there is one configured. |
32 | |||
33 | .. toctree:: | ||
34 | :maxdepth: 1 | ||
35 | |||
36 | SELinux | ||
diff --git a/Documentation/security/00-INDEX b/Documentation/security/00-INDEX index 190a023a7e72..aaa0195418b3 100644 --- a/Documentation/security/00-INDEX +++ b/Documentation/security/00-INDEX | |||
@@ -1,7 +1,5 @@ | |||
1 | 00-INDEX | 1 | 00-INDEX |
2 | - this file. | 2 | - this file. |
3 | SELinux.txt | ||
4 | - how to get started with the SELinux security enhancement. | ||
5 | Smack.txt | 3 | Smack.txt |
6 | - documentation on the Smack Linux Security Module. | 4 | - documentation on the Smack Linux Security Module. |
7 | Yama.txt | 5 | Yama.txt |
diff --git a/MAINTAINERS b/MAINTAINERS index 752916d1461c..e0dabbfff283 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -11551,6 +11551,7 @@ S: Supported | |||
11551 | F: include/linux/selinux* | 11551 | F: include/linux/selinux* |
11552 | F: security/selinux/ | 11552 | F: security/selinux/ |
11553 | F: scripts/selinux/ | 11553 | F: scripts/selinux/ |
11554 | F: Documentation/admin-guide/LSM/SELinux.rst | ||
11554 | 11555 | ||
11555 | APPARMOR SECURITY MODULE | 11556 | APPARMOR SECURITY MODULE |
11556 | M: John Johansen <john.johansen@canonical.com> | 11557 | M: John Johansen <john.johansen@canonical.com> |
diff --git a/scripts/selinux/README b/scripts/selinux/README index 4d020ecb7524..5ba679c5be18 100644 --- a/scripts/selinux/README +++ b/scripts/selinux/README | |||
@@ -1,2 +1,2 @@ | |||
1 | Please see Documentation/security/SELinux.txt for information on | 1 | Please see Documentation/admin-guide/LSM/SELinux.rst for information on |
2 | installing a dummy SELinux policy. | 2 | installing a dummy SELinux policy. |