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
..
2012-11-07 13:33:17 +00:00
2012-11-13 09:54:54 +00:00
2013-02-22 23:31:31 -05:00
2012-11-07 13:31:07 +00:00
2012-11-15 10:17:22 +00:00
2013-01-02 10:04:00 +00:00
2012-04-24 16:44:34 +01:00
2012-08-04 12:15:40 +04:00
2012-11-15 10:17:22 +00:00
2013-02-22 23:31:31 -05:00
2012-11-07 13:33:17 +00:00
2012-04-24 16:44:34 +01:00
2012-11-07 13:33:17 +00:00