]> git.baikalelectronics.ru Git - kernel.git/commit
jffs2: Add missing capability check for listing trusted xattrs
authorAndreas Gruenbacher <agruenba@redhat.com>
Sun, 4 Oct 2015 17:18:50 +0000 (19:18 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 14 Nov 2015 01:34:30 +0000 (20:34 -0500)
commit324b50b6ac48fec8c7a684382fd89c451b5926c2
tree63c53e010b663b46a3eb9db757ce8da0fac75bf3
parent0544e1a03c29385e92cd29ae20cfaa6de9414a57
jffs2: Add missing capability check for listing trusted xattrs

The vfs checks if a task has the appropriate access for get and set
operations, but it cannot do that for the list operation; the file system
must check for that itself.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/jffs2/xattr_trusted.c