Skip to content

Commit d41415e

Browse files
stephensmalleypcmoore
authored andcommitted
Documentation,selinux: fix references to old selinuxfs mount point
selinuxfs was originally mounted on /selinux, and various docs and kconfig help texts referred to nodes under it. In Linux 3.0, /sys/fs/selinux was introduced as the preferred mount point for selinuxfs. Fix all the old references to /selinux/ to /sys/fs/selinux/. While we are there, update the description of the selinux boot parameter to reflect the fact that the default value is always 1 since commit be6ec88 ("selinux: Remove SECURITY_SELINUX_BOOTPARAM_VALUE") and drop discussion of runtime disable since it is deprecated. Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov> Signed-off-by: Paul Moore <paul@paul-moore.com>
1 parent 89b223b commit d41415e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎Documentation/admin-guide/kernel-parameters.txt‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@
511511
1 -- check protection requested by application.
512512
Default value is set via a kernel config option.
513513
Value can be changed at runtime via
514-
/selinux/checkreqprot.
514+
/sys/fs/selinux/checkreqprot.
515515

516516
cio_ignore= [S390]
517517
See Documentation/s390/common_io.rst for details.
@@ -1245,7 +1245,8 @@
12451245
0 -- permissive (log only, no denials).
12461246
1 -- enforcing (deny and log).
12471247
Default value is 0.
1248-
Value can be changed at runtime via /selinux/enforce.
1248+
Value can be changed at runtime via
1249+
/sys/fs/selinux/enforce.
12491250

12501251
erst_disable [ACPI]
12511252
Disable Error Record Serialization Table (ERST)
@@ -4348,9 +4349,7 @@
43484349
See security/selinux/Kconfig help text.
43494350
0 -- disable.
43504351
1 -- enable.
4351-
Default value is set via kernel config option.
4352-
If enabled at boot time, /selinux/disable can be used
4353-
later to disable prior to initial policy load.
4352+
Default value is 1.
43544353

43554354
apparmor= [APPARMOR] Disable or enable AppArmor at boot time
43564355
Format: { "0" | "1" }

‎security/selinux/Kconfig‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,16 @@ config SECURITY_SELINUX_DEVELOP
5858
kernel will start in permissive mode (log everything, deny nothing)
5959
unless you specify enforcing=1 on the kernel command line. You
6060
can interactively toggle the kernel between enforcing mode and
61-
permissive mode (if permitted by the policy) via /selinux/enforce.
61+
permissive mode (if permitted by the policy) via
62+
/sys/fs/selinux/enforce.
6263

6364
config SECURITY_SELINUX_AVC_STATS
6465
bool "NSA SELinux AVC Statistics"
6566
depends on SECURITY_SELINUX
6667
default y
6768
help
6869
This option collects access vector cache statistics to
69-
/selinux/avc/cache_stats, which may be monitored via
70+
/sys/fs/selinux/avc/cache_stats, which may be monitored via
7071
tools such as avcstat.
7172

7273
config SECURITY_SELINUX_CHECKREQPROT_VALUE
@@ -85,7 +86,7 @@ config SECURITY_SELINUX_CHECKREQPROT_VALUE
8586
default to checking the protection requested by the application.
8687
The checkreqprot flag may be changed from the default via the
8788
'checkreqprot=' boot parameter. It may also be changed at runtime
88-
via /selinux/checkreqprot if authorized by policy.
89+
via /sys/fs/selinux/checkreqprot if authorized by policy.
8990

9091
If you are unsure how to answer this question, answer 0.
9192

0 commit comments

Comments
 (0)