Bug 82502 - EAs and ACLs doesn't seem to work in phoebe 2
EAs and ACLs doesn't seem to work in phoebe 2
Status: CLOSED RAWHIDE
Product: Red Hat Public Beta
Classification: Retired
Component: kernel (Show other bugs)
phoebe
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Steve Dickson
Brian Brock
:
Depends On:
Blocks: 79578 84358
  Show dependency treegraph
 
Reported: 2003-01-22 16:39 EST by Dax Kelson
Modified: 2007-04-18 12:50 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-02-19 16:43:29 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Dax Kelson 2003-01-22 16:39:28 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030115

Description of problem:
Here is an EA test:

# cd /tmp
# echo boomoo > foo
# setfattr -n cost -v 10 foo
setfattr: foo: Operation not supported

Doing an strace shows the offender:

setxattr("foo", "cost", 0x804ae70, 2, ) = -1 EOPNOTSUPP (Operation not
supported)

Here is an ACL test:

# cd /tmp
# touch anotherfile
# ls -l anotherfile
-rw-r--r--    1 root     root            0 Jan 22 14:13 anotherfile
# setfacl -m u:joe:7 anotherfile
setfacl: anotherfile: Operation not supported

strace info:

getxattr("anotherfile", "system.posix_acl_access", 0xbfffda30, 132) = -1
EOPNOTSUPP (Operation not supported)
setxattr("anotherfile", "system.posix_acl_access", 0x804fcc8, 44, ) = -1
EOPNOTSUPP (Operation not supported)

Version-Release number of selected component (if applicable):
kernel-2.4.20-2.24
Comment 1 Steve Dickson 2003-01-30 11:48:34 EST
The filesystem needs to be mounted with the acl and/or user_xattr options
To verify the filesystem is mounted correctly the output of the
mount command whould look like:

    /dev/sdb3 on /d1 type ext3 (rw,acl,user_xattr)
Comment 2 Dax Kelson 2003-01-30 18:05:15 EST
Those mount options should be in the mount man page.

I still have a problem though. ACLs work, ATTRs don't.

# mount
/dev/hda5 on / type ext3 (rw,acl,user_xattr)

[root@mentor tmp]# cd /tmp  (this is part of /)
[root@mentor tmp]# setfacl -m u:joe:7 somefile
[root@mentor tmp]# getfacl somefile
# file: somefile
# owner: root
# group: root
user::rw-
user:joe:rwx
group::r--
mask::rwx
other::r--

ATTRs don't work yet....

[root@mentor tmp]# echo lksdjf > foo2
[root@mentor tmp]# setfattr -n cost -v 10 foo2
setfattr: foo2: Operation not supported
[root@mentor tmp]#

Comment 3 Steve Dickson 2003-01-31 16:57:15 EST
the name (-n) has to be prefixed with "user." Try:
setfattr -n user.cost -v 10 foo2
Comment 4 Bill Nottingham 2003-02-18 16:58:16 EST
Does this work for you now?
Comment 5 Bill Nottingham 2003-02-19 16:43:29 EST
This works for me with 2.4.20-2.49

Note You need to log in before you can comment on or make changes to this bug.