Skip to contentSkip to conversation

selinux.8: document how mount flag nosuid affects SELinux

PATCH In review Topi Miettinen 2 participants 2 messages Jun 12, 2021 – Jun 18, 2021 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selinux.8: document how mount flag nosuid affects SELinux

Using mount flag nosuid also affects SELinux domain transitions but this has not been documented well.

---
 libselinux/man/man8/selinux.8 | 7 +++++++
 1 file changed, 7 insertions(+)
libselinux/man/man8/selinux.8 +7 -0
index 0ef01460..5842150b 100644
@@ -94,6 +94,13 @@ and reboot.
 also has this capability.  The
 .BR restorecon / fixfiles
 commands are also available for relabeling files.
+
+Please note that using mount flag
+.I nosuid
+also disables SELinux domain transitions, unless permission
+.I nosuid_transition
+is used in the policy to allow this, which in turn needs also policy capability
+.IR nnp_nosuid_transition .
 .
 .SH AUTHOR
 This manual page was written by Dan Walsh <[email protected]>.
Signature · 1 line
2.30.2
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Topi Miettinen

Using mount flag nosuid also affects SELinux domain transitions but this has not been documented well.

Merged. Thanks!

Quoted 24 lines
---
 libselinux/man/man8/selinux.8 | 7 +++++++
 1 file changed, 7 insertions(+)
libselinux/man/man8/selinux.8 +7 -0
index 0ef01460..5842150b 100644
@@ -94,6 +94,13 @@ and reboot.
 also has this capability.  The
 .BR restorecon / fixfiles
 commands are also available for relabeling files.
+
+Please note that using mount flag
+.I nosuid
+also disables SELinux domain transitions, unless permission
+.I nosuid_transition
+is used in the policy to allow this, which in turn needs also policy capability
+.IR nnp_nosuid_transition .
 .
 .SH AUTHOR
 This manual page was written by Dan Walsh <[email protected]>.
Signature · 1 line
2.30.2