[Bugs] [Bug 1287878] New: glusterfs does not allow passing standard SElinux mount options to fuse

bugzilla at redhat.com bugzilla at redhat.com
Wed Dec 2 22:10:23 UTC 2015


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

            Bug ID: 1287878
           Summary: glusterfs does not allow passing standard SElinux
                    mount options to fuse
           Product: GlusterFS
           Version: 3.6.7
         Component: scripts
          Keywords: SELinux, Triaged
          Severity: high
          Priority: high
          Assignee: bugs at gluster.org
          Reporter: ndevos at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com,
                    mselvaga at redhat.com, ndevos at redhat.com
        Depends On: 1287763
            Blocks: 1267567 (glusterfs-3.6.7)



+++ This bug was initially created as a clone of Bug #1287763 +++
+++                                                           +++
+++ Use this bug to provide a backport to release-3.6         +++

Description of problem:

With older versions of gluster, say 3.5.3, glusterfs supports setting selinux
context over fuse.glusterfs mountpoint. After 3.6.1, it throws an error :
"Invalid option: context". 

The problem is because of a change in mount.glusterfs script. With older
versions, it works fine.

Version-Release number of selected component (if applicable):


How reproducible:
Always in versions from 3.6

Steps to Reproduce:
http://www.gluster.org/pipermail/gluster-users.old/2015-January/020014.html

Actual results:
It throws an error "Invalid option: context"

Expected results:
Inform FUSE that the glusterfs sub-filesystem supports SElinux while passing
mount options and allow to set selinux context over the mountpoint.


Additional info:

When you set selinux context, the same can be verfied in /proc/mounts:

vm1:sel /qwe1 fuse.glusterfs
rw,context=system_u:object_r:user_home_t:s0,relatime,user_id=0,group_id=0,default_
   permissions,allow_other,max_read=131072 0 0

--- Additional comment from Vijay Bellur on 2015-12-02 21:56:01 CET ---

REVIEW: http://review.gluster.org/12858 (fuse: pass default SElinux mount
options on to the kernel) posted (#1) for review on master by Niels de Vos
(ndevos at redhat.com)


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1267567
[Bug 1267567] GlusterFS 3.6.7 release tracker
https://bugzilla.redhat.com/show_bug.cgi?id=1287763
[Bug 1287763] glusterfs does not allow passing standard SElinux mount
options to fuse
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list