aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorZhao Hongjiang <[email protected]>2013-02-20 02:13:55 +0000
committerAl Viro <[email protected]>2013-02-26 07:46:14 +0000
commit41735818766c0ec215b9a69591e7eae642061954 (patch)
tree564ccbbc05d987f833050573e7fad23ce34dfc89 /security/selinux/hooks.c
parentfs/exec.c: make bprm_mm_init() static (diff)
downloadkernel-41735818766c0ec215b9a69591e7eae642061954.tar.gz
kernel-41735818766c0ec215b9a69591e7eae642061954.zip
fs: change return values from -EACCES to -EPERM
According to SUSv3: [EACCES] Permission denied. An attempt was made to access a file in a way forbidden by its file access permissions. [EPERM] Operation not permitted. An attempt was made to perform an operation limited to processes with appropriate privileges or to the owner of a file or other resource. So -EPERM should be returned if capability checks fails. Strictly speaking this is an API change since the error code user sees is altered. Signed-off-by: Zhao Hongjiang <[email protected]> Acked-by: Jan Kara <[email protected]> Acked-by: Steven Whitehouse <[email protected]> Acked-by: Ian Kent <[email protected]> Cc: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions