From 305b09f6f7496f34055634434ec016ac7cf4816d Mon Sep 17 00:00:00 2001 From: Ian Dall Date: Wed, 13 Jul 2005 09:15:18 -0500 Subject: [PATCH] --- yaml --- r: 4766 b: refs/heads/master c: 59192ed9e7aa81b06a1803661419f7261afca1ad h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/jfs/xattr.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index bc0e9d79847a..c955977f4bbf 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6211502d7ee9e515e4458d0c0ebfbb70553dc7de +refs/heads/master: 59192ed9e7aa81b06a1803661419f7261afca1ad diff --git a/trunk/fs/jfs/xattr.c b/trunk/fs/jfs/xattr.c index fdd8f3f5a72f..554ec739e49b 100644 --- a/trunk/fs/jfs/xattr.c +++ b/trunk/fs/jfs/xattr.c @@ -790,12 +790,12 @@ static int can_set_xattr(struct inode *inode, const char *name, */ return can_set_system_xattr(inode, name, value, value_len); - if(strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN) != 0) + if(strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN) == 0) return (capable(CAP_SYS_ADMIN) ? 0 : -EPERM); #ifdef CONFIG_JFS_SECURITY if (strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN) - != 0) + == 0) return 0; /* Leave it to the security module */ #endif