linux/fs/autofs4
Zhao Hongjiang 4173581876 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 <zhaohongjiang@huawei.com>
Acked-by: Jan Kara <jack@suse.cz>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Acked-by: Ian Kent <raven@themaw.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-26 02:46:14 -05:00
..
autofs_i.h new helper: file_inode(file) 2013-02-22 23:31:31 -05:00
dev-ioctl.c new helper: file_inode(file) 2013-02-22 23:31:31 -05:00
expire.c autofs4 - dont clear DCACHE_NEED_AUTOMOUNT on rootless mount 2012-12-13 19:13:25 -08:00
init.c autofs: set things up *before* registering fs type 2012-03-20 21:29:46 -04:00
inode.c userns: Support autofs4 interacing with multiple user namespaces 2012-11-14 22:05:32 -08:00
Kconfig fs/Kconfig: move autofs, autofs4 out 2009-01-22 13:15:54 +03:00
Makefile autofs4: add miscellaneous device for ioctls 2008-10-16 11:21:39 -07:00
root.c fs: change return values from -EACCES to -EPERM 2013-02-26 02:46:14 -05:00
symlink.c autofs4: keep symlink body in inode->i_private 2011-01-18 01:21:27 -05:00
waitq.c userns: Support autofs4 interacing with multiple user namespaces 2012-11-14 22:05:32 -08:00