diff options
author | Paul Moore <pmoore@redhat.com> | 2014-05-15 11:16:06 -0400 |
---|---|---|
committer | Serge Hallyn <serge.hallyn@ubuntu.com> | 2014-06-03 14:21:48 -0500 |
commit | 5b589d44fad18228f18749360d008d5c8ff3aaf8 (patch) | |
tree | cc90b51e698724cb18b113904a629625ba79185f /crypto/xcbc.c | |
parent | ca7786a2f916540931d7114d441efa141c99c898 (diff) |
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 'crypto/xcbc.c')
0 files changed, 0 insertions, 0 deletions