diff options
author | Himanshu Shukla <himanshu.sh@samsung.com> | 2016-11-10 11:47:49 +0100 |
---|---|---|
committer | Casey Schaufler <casey@schaufler-ca.com> | 2016-11-10 20:21:52 +0100 |
commit | 7128ea159d60a91b3f0a7d10a1ea7d62b53cda93 (patch) | |
tree | 619eac3e523d6f16292dea2704cc9aa217a5b4d9 /security/security.c | |
parent | smack: parse mnt opts after privileges check (diff) | |
download | linux-7128ea159d60a91b3f0a7d10a1ea7d62b53cda93.tar.xz linux-7128ea159d60a91b3f0a7d10a1ea7d62b53cda93.zip |
SMACK: Do not apply star label in smack_setprocattr hook
Smack prohibits processes from using the star ("*") and web ("@") labels.
Checks have been added in other functions. In smack_setprocattr()
hook, only check for web ("@") label has been added and restricted
from applying web ("@") label.
Check for star ("*") label should also be added in smack_setprocattr()
hook. Return error should be "-EINVAL" not "-EPERM" as permission
is there for setting label but not the label value as star ("*") or
web ("@").
Signed-off-by: Himanshu Shukla <himanshu.sh@samsung.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'security/security.c')
0 files changed, 0 insertions, 0 deletions