Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6211502d authored by Dave Kleikamp's avatar Dave Kleikamp
Browse files

JFS: Allow security.* xattrs to be set on symlinks



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: default avatarDave Kleikamp <shaggy@austin.ibm.com>
parent f7f24758
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)