On Mon, 2005-07-04 at 10:55 +0800, RChan wrote:
> I'm getting
> 
> post_create:  setxattr failed, rc=1 (dev=hdb2 ino=471266)
> 
> errors with a JFS filesystem so SELinux (fixfiles) isn't working well.
> I'm running
>    fixfiles restore /u01
> 
> Kernel: Fedora Core 4 2.6.11-1.1369_FC4
> with
> 
> CONFIG_JFS_FS=m
> CONFIG_JFS_POSIX_ACL=y
> CONFIG_JFS_SECURITY=y
> # CONFIG_JFS_DEBUG is not set
> # CONFIG_JFS_STATISTICS is not set
> CONFIG_FS_POSIX_ACL=y
> 
> Filesystem is mounted with xattr
> SELinux: initialized (dev hdb2, type jfs), uses xattr
> 
> Any ideas?

Could there be symbolic links involved?  This problem had been reported,
but I failed to get the patch into the kernel.  Here it is.

diff -Nurp linux-2.6.12-rc4/fs/jfs/xattr.c linux/fs/jfs/xattr.c
--- linux-2.6.12-rc4/fs/jfs/xattr.c     2005-03-02 01:38:37.000000000 -0600
+++ linux/fs/jfs/xattr.c        2005-05-24 14:24:37.000000000 -0500
@@ -780,7 +780,7 @@ static int can_set_xattr(struct inode *i
        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)


-- 
David Kleikamp
IBM Linux Technology Center



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Jfs-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Reply via email to