Bug 842319
Summary: | getfattr fails for non-root users | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Tim Speetjens <tspeetje> |
Component: | glusterfs | Assignee: | Amar Tumballi <amarts> |
Status: | CLOSED NOTABUG | QA Contact: | Sudhir D <sdharane> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.0 | CC: | gluster-bugs, shaines, vbellur, vraman |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-07-25 04:44:26 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Tim Speetjens
2012-07-23 13:21:22 UTC
Actually, 'trusted.*' domain is reserved only for superuser in Linux. Hence getting information about 'trusted' domain key will result in failure as non-root user. Happens even on other filesystems. only issue here is, the error below on xfs is 'ENODATA' and on glusterfs its ENOTSUP ------ Snip ------ [root@tumballi ~]# cd /tmp/ [root@tumballi tmp]# touch abcd [root@tumballi tmp]# chmod 0777 abcd [root@tumballi tmp]# setfattr -n trusted.testing -v value abcd [root@tumballi tmp]# getfattr -n trusted.testing abcd # file: abcd trusted.testing="value" [root@tumballi tmp]# su amar - amar@tumballi:/tmp$ getfattr -n trusted.testing abcd abcd: trusted.testing: No such attribute amar@tumballi:/tmp$ getfattr -d -m . abcd # file: abcd security.selinux="unconfined_u:object_r:user_tmp_t:s0" amar@tumballi:/tmp$ exit [root@tumballi tmp]# getfattr -d -m . abcd # file: abcd security.selinux="unconfined_u:object_r:user_tmp_t:s0" trusted.testing="value" [root@tumballi tmp]# ----- |