diff options
author | Stephen Smalley <sds@tycho.nsa.gov> | 2015-02-23 10:54:56 -0500 |
---|---|---|
committer | Stephen Smalley <sds@tycho.nsa.gov> | 2015-02-23 10:54:56 -0500 |
commit | 2d5ac1c9317edf2b9dcf5cce604c1c461f1322ce (patch) | |
tree | cd69b6c43e325740bd24f4b0644088897ee68cea /libselinux/man/man3 | |
parent | cc8995f08c3097b48dcd092832839d87f9597b24 (diff) | |
download | android_external_selinux-2d5ac1c9317edf2b9dcf5cce604c1c461f1322ce.tar.gz android_external_selinux-2d5ac1c9317edf2b9dcf5cce604c1c461f1322ce.tar.bz2 android_external_selinux-2d5ac1c9317edf2b9dcf5cce604c1c461f1322ce.zip |
libselinux: getcon.3: Fix setcon description.
The man page description for setcon() was never updated for the
introduction of bounded transitions in Linux 2.6.28. Update it.
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'libselinux/man/man3')
-rw-r--r-- | libselinux/man/man3/getcon.3 | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/libselinux/man/man3/getcon.3 b/libselinux/man/man3/getcon.3 index fd0e02b8..644ee47c 100644 --- a/libselinux/man/man3/getcon.3 +++ b/libselinux/man/man3/getcon.3 @@ -90,10 +90,18 @@ A multi-threaded application can perform a .BR setcon () prior to creating any child threads, in which case all of the child threads will inherit -the new context. However, +the new context. However, prior to Linux 2.6.28, .BR setcon () -will fail if there are any other -threads running in the same process. +would fail if there are any other +threads running in the same process since this would yield +an inconsistency among the security contexts of threads sharing +the same memory space. Since Linux 2.6.28, +.BR setcon() +is permitted for threads within a multi-threaded process if the +new security context is bounded by the old security context, where +the bounded relation is defined through typebounds statements in the +policy and guarantees that the new security context has a subset of +the permissions of the old security context. If the process was being ptraced at the time of the .BR setcon () |