]> git.baikalelectronics.ru Git - kernel.git/commit
fanotify: Return EPERM when a process is not privileged
authorAndreas Gruenbacher <agruen@suse.de>
Tue, 24 Aug 2010 10:58:54 +0000 (12:58 +0200)
committerEric Paris <eparis@redhat.com>
Fri, 27 Aug 2010 23:59:42 +0000 (19:59 -0400)
commit22fa8e8dd69ab2649b6bc8b5317945b003fc2a7c
tree3c9bd63cb165bbb4427399b3e87deb74911cd97d
parent9bb16d101b75fba75e46682d0071b443060485c1
fanotify: Return EPERM when a process is not privileged

The appropriate error code when privileged operations are denied is
EPERM, not EACCES.

Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Eric Paris <paris@paris.rdu.redhat.com>
fs/notify/fanotify/fanotify_user.c