xfs-masters
[Top] [All Lists]

[xfs-masters] [Bug 427] New: XFS does not allow getxattr() on immutable

To: xfs-master@xxxxxxxxxxx
Subject: [xfs-masters] [Bug 427] New: XFS does not allow getxattr() on immutable files
From: bugzilla-daemon@xxxxxxxxxxx
Date: Tue, 22 Nov 2005 17:57:11 -0800
Reply-to: xfs-masters@xxxxxxxxxxx
Sender: xfs-masters-bounce@xxxxxxxxxxx
http://oss.sgi.com/bugzilla/show_bug.cgi?id=427

           Summary: XFS does not allow getxattr() on immutable files
           Product: Linux XFS
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XFS kernel code
        AssignedTo: xfs-master@xxxxxxxxxxx
        ReportedBy: johannes@xxxxxxxxxxxxxxxx


XFS does not allow getxattr() on immutable files:

(from strace of getfattr)
        getxattr("myfile", "user.myattr", 0x0, 0) = -1 EPERM (Operation not
permitted)

The reason is the following code fragment from linvfs_getxattr:

        error = namesp->attr_capable(vp, NULL);
        if (error)
                return error;

where the namesp was attr_user, so attr_user_capable is called,
which does:
        if (IS_IMMUTABLE(inode) || IS_APPEND(inode))
                return -EPERM;

This applies even to the superuser.

-- 
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


<Prev in Thread] Current Thread [Next in Thread>
  • [xfs-masters] [Bug 427] New: XFS does not allow getxattr() on immutable files, bugzilla-daemon <=