diff options
| author | Marc Dionne <[email protected]> | 2017-07-06 14:50:18 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2017-07-09 21:40:12 +0000 |
| commit | fd2498211a551fd42b2d6b9050d649d43536e75c (patch) | |
| tree | 584019e61d101ed7bdfa209c55463da751ed55ae /net/unix/af_unix.c | |
| parent | mqueue: fix a use-after-free in sys_mq_notify() (diff) | |
| download | kernel-fd2498211a551fd42b2d6b9050d649d43536e75c.tar.gz kernel-fd2498211a551fd42b2d6b9050d649d43536e75c.zip | |
afs: Ignore AFS_ACE_READ and AFS_ACE_WRITE for directories
The AFS_ACE_READ and AFS_ACE_WRITE permission bits should not
be used to make access decisions for the directory itself. They
are meant to control access for the objects contained in that
directory.
Reading a directory is allowed if the AFS_ACE_LOOKUP bit is set.
This would cause an incorrect access denied error for a directory
with AFS_ACE_LOOKUP but not AFS_ACE_READ.
The AFS_ACE_WRITE bit does not allow operations that modify the
directory. For a directory with AFS_ACE_WRITE but neither
AFS_ACE_INSERT nor AFS_ACE_DELETE, this would result in trying
operations that would ultimately be denied by the server.
Signed-off-by: Marc Dionne <[email protected]>
Signed-off-by: David Howells <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
