]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
JFS: Allow security.* xattrs to be set on symlinks
authorDave Kleikamp <shaggy@austin.ibm.com>
Wed, 13 Jul 2005 14:07:53 +0000 (09:07 -0500)
committerDave Kleikamp <shaggy@austin.ibm.com>
Wed, 13 Jul 2005 14:07:53 +0000 (09:07 -0500)
All of the different xattr namespaces have different rules.
user.* and ACL's are not allowed on symlinks, and since these were the
first xattrs implemented, I assumed there was no need to support xattrs
on symlinks.  This one-line patch should fix it.

Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
fs/jfs/xattr.c

index ee438d429d457700457c0c30eb0dde9e8c695497..fdd8f3f5a72f3cc85386424cc4531b6de613ee95 100644 (file)
@@ -781,7 +781,7 @@ static int can_set_xattr(struct inode *inode, const char *name,
        if (IS_RDONLY(inode))
                return -EROFS;
 
-       if (IS_IMMUTABLE(inode) || IS_APPEND(inode) || S_ISLNK(inode->i_mode))
+       if (IS_IMMUTABLE(inode) || IS_APPEND(inode))
                return -EPERM;
 
        if(strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN) == 0)