gluster / glusterfs-selinux

GNU General Public License v2.0
5 stars 12 forks source link

Geo-replication session fails and bricks go to faulty state #7

Closed schaffung closed 4 years ago

schaffung commented 4 years ago

Issue: The Geo-replication sessions go for a toss when we enforce selinux rules.

Detailed Description :

The Geo-replication session is set up under an environment wherein all the selinux rules are enforced. But it is seen that the bricks go to faulty with the gsyncd.log stating that the rsync is failing with error code 12. On Digging deeper it seems that a fix was given in fedora upstream for handling the selinux rules for glusterd_t and rsync_t but that isn't part of the latest releases. Also as it concerns glusterfs rpms, it should rather be part of glusterfs-selinux. For reference the upstream patch in fedora community which solves the issue : [Fedora-selinux-patch](https://github.com/fedora-selinux/selinux-policy-contrib/pull/242)
schaffung commented 4 years ago

@rkothiya , gluster uses rsync for geo-rep. And it seems that even the rsync permissions have to be modified.

So the question is whether the files, rsync.te, rsync.if and rsync.fc files be part of glusterfs-selinux...