[Bugs] [Bug 1297182] New: Mounting with "-o noatime" or "-o noexec" causes "nosuid, nodev" to be set as well

bugzilla at redhat.com bugzilla at redhat.com
Sun Jan 10 11:27:00 UTC 2016


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

            Bug ID: 1297182
           Summary: Mounting with "-o noatime" or "-o noexec" causes
                    "nosuid,nodev" to be set as well
           Product: GlusterFS
           Version: mainline
         Component: fuse
          Keywords: Triaged
          Assignee: bugs at gluster.org
          Reporter: ndevos at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com
        Depends On: 1296992



Description of problem:
With additional tests after fixing bug 1296992 I noticed that mounting with "-o
noatime" or "-o noexec" the additional "nosuid,nodev" mount options are set as
well.

Mounting without any options does not add "nosuid,nodev"

Version-Release number of selected component (if applicable):
mainline and branches with backport of bug 1296992

How reproducible:
100%

Steps to Reproduce:
1. mount a Gluster volume with "-o noatime" or "-o noexec"
2. compare mount options in /proc/mounts

Actual results:
The "nosuid,nodev" mount options are automatically added, even when not
specified in the mount command.

Expected results:
Mounting with additional options should only add/change those options, not
automatically add others.

Additional info:
This most likely is caused by the flag handling in do_mount() in
contrib/fuse-util/fusermount.c. Needs some investigation on the reasoning
behind this.


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1296992
[Bug 1296992] Stricter dependencies for glusterfs-server
-- 
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