]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - Documentation/security/Smack.txt
Merge remote-tracking branch 'spi/for-next'
[karo-tx-linux.git] / Documentation / security / Smack.txt
index 5e6d07fbed07c5483a73a5d47c9ba8ec67a9e7c6..945cc633d883dea13713264d3bf4bb19dd49ab55 100644 (file)
@@ -255,6 +255,16 @@ unconfined
        the access permitted if it wouldn't be otherwise. Note that this
        is dangerous and can ruin the proper labeling of your system.
        It should never be used in production.
+relabel-self
+       This interface contains a list of labels to which the process can
+       transition to, by writing to /proc/self/attr/current.
+       Normally a process can change its own label to any legal value, but only
+       if it has CAP_MAC_ADMIN. This interface allows a process without
+       CAP_MAC_ADMIN to relabel itself to one of labels from predefined list.
+       A process without CAP_MAC_ADMIN can change its label only once. When it
+       does, this list will be cleared.
+       The values are set by writing the desired labels, separated
+       by spaces, to the file or cleared by writing "-" to the file.
 
 If you are using the smackload utility
 you can add access rules in /etc/smack/accesses. They take the form: