• A
    [PATCH] Fix user.* xattr permission check for sticky dirs · f1f2d871
    Andreas Gruenbacher 提交于
    The user.* extended attributes are only allowed on regular files and
    directories.  Sticky directories further restrict write access to the owner
    and privileged users.  (See the attr(5) man page for an explanation.)
    
    The original check in ext2/ext3 when user.* xattrs were merged was more
    restrictive than intended, and when the xattr permission checks were moved
    into the VFS, read access to user.* attributes on sticky directores ended
    up being denied in addition.
    
    Originally-from: Gerard Neil <xyzzy@devferret.org>
    Signed-off-by: NAndreas Gruenbacher <agruen@suse.de>
    Cc: Dave Kleikamp <shaggy@austin.ibm.com>
    Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>
    Signed-off-by: NAndrew Morton <akpm@osdl.org>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    f1f2d871
xattr.c 13.8 KB