[Bugs] [Bug 1256635] Cannot set selinux context on files on a glusterfs mount

bugzilla at redhat.com bugzilla at redhat.com
Thu Aug 27 00:21:05 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1256635



--- Comment #3 from Bob Arendt <rda at rincon.com> ---
I tried ensuring all processes had the --selinux flag (see bug 1252627#c1). 
Recreating the volume from scratch with patched glusterfs-3.7.3 I saw the flags
applied:

/usr/sbin/glusterd --pid-file=/var/run/glusterd.pid --selinux
/usr/sbin/glusterfsd --selinux -s ga --volfile-id gvol.ga.b1 -p
/var/lib/glusterd/vols/gvol/run/ga-b1.pid -S
/var/run/gluster/11753d16ee8a048e5f9b2331cbcfd4c7.socket --brick-name /b1 -l
/var/log/glusterfs/bricks/b1.log --xlator-option
*-posix.glusterd-uuid=6f491c3b-53d5-4928-8435-6c3d84f3ce53 --brick-port 49152
--xlator-option gvol-server.listen-port=49152
/usr/sbin/glusterfs --selinux -s localhost --volfile-id gluster/glustershd -p
/var/lib/glusterd/glustershd/run/glustershd.pid -l
/var/log/glusterfs/glustershd.log -S
/var/run/gluster/6502d8ef42d50130bd676cf9ef26c76d.socket --xlator-option
*replicate*.node-uuid=6f491c3b-53d5-4928-8435-6c3d84f3ce53
/usr/sbin/glusterfs --selinux --volfile-server=localhost --volfile-id=/gvol
/data


But I received the same error:
# chcon -t tftpdir_rw_t /data/a/b/myfile
chcon: failed to change context of `/data/a/b/myfile' to
`system_u:object_r:tftpdir_rw_t:s0': Operation not supported

Something deeper in the code seems to be missing. Does anyone have an idea
where the disconnect is?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=GF3ruXWisM&a=cc_unsubscribe


More information about the Bugs mailing list