diff options
author | 2014-05-15 11:16:06 -0400 | |
---|---|---|
committer | 2014-05-15 11:16:06 -0400 | |
commit | 4f189988a0a5890db597ec48fc0e8b09922f290a (patch) | |
tree | b3160fdb38bc7ab16a603ed69d737be2b1b7d5d2 /lib/locking-selftest-wlock-softirq.h | |
parent | selinux: Report permissive mode in avc: denied messages. (diff) | |
download | linux-dev-4f189988a0a5890db597ec48fc0e8b09922f290a.tar.xz linux-dev-4f189988a0a5890db597ec48fc0e8b09922f290a.zip |
selinux: reject setexeccon() on MNT_NOSUID applications with -EACCES
We presently prevent processes from using setexecon() to set the
security label of exec()'d processes when NO_NEW_PRIVS is enabled by
returning an error; however, we silently ignore setexeccon() when
exec()'ing from a nosuid mounted filesystem. This patch makes things
a bit more consistent by returning an error in the setexeccon()/nosuid
case.
Signed-off-by: Paul Moore <pmoore@redhat.com>
Acked-by: Andy Lutomirski <luto@amacapital.net>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'lib/locking-selftest-wlock-softirq.h')
0 files changed, 0 insertions, 0 deletions