Bug 201066 - [fusefs] fuse module possibly blocking ordinary users access glusterfs mounts
Summary: [fusefs] fuse module possibly blocking ordinary users access glusterfs mounts
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.2-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: Hiroki Sato
URL:
Keywords:
Depends on:
Blocks: 194409
  Show dependency treegraph
 
Reported: 2015-06-23 02:37 UTC by craig001
Modified: 2015-12-04 11:26 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description craig001 2015-06-23 02:37:29 UTC
We are trying to port glusterfs to FreeBSD
There is a port candidate WIP;
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194409

Unfortunately we have hit a problem.  

We don't seem to be allowing ordinary users to access the mounts.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194409#c10

I am experiencing the same with 3.7.2

#####
craig@zbox:/data/brick1> sudo glusterfs --volfile-id=gv0 --volfile-server=zbox /mnt/glusterfs

craig@zbox:/data/brick1> mount | grep fuse
/dev/fuse on /mnt/glusterfs (fusefs, local, synchronous)

craig@zbox:/data/brick1> ls -ld /mnt/glusterfs
drwxr-xr-x  4 root  wheel  9 23 Jun 02:36 /mnt/glusterfs

craig@zbox:/data/brick1> ls /mnt/glusterfs/
ls: /mnt/glusterfs/: Operation not permitted

craig@zbox:/data/brick1> id
uid=1001(craig) gid=1001(craig) groups=1001(craig),0(wheel),5(operator),145(webcamd),193(cups),194(saned)

craig@zbox:/data/brick1> sudo ls /mnt/glusterfs/
.trashcan  yahoo
#####

Please could we have some help to diagnose the issue to see if we can get it resolved.

I can raise a Bugreport to the GlusterFS team if it's their code at fault.

Kind Regards

Craig Butler
Comment 1 Hiroki Sato freebsd_committer freebsd_triage 2015-06-29 04:50:04 UTC
Sorry for being unresponsive about glusterfs port for a long time.  I will look into this.
Comment 2 Nick Evans 2015-08-06 15:35:23 UTC
Any progress here?
Comment 3 Nick Evans 2015-10-06 17:02:15 UTC
Bump.
Comment 4 craig001 2015-10-06 18:11:05 UTC
Hello Nick

I havn't had much luck with this or digging deeper into it at the moment.

I am not sure what to do next or if Hiroki has picked it up.

As it stands at the moment I am still hitting the same stumbling blocks...

Kind Regards

Craig Butler
Comment 5 andrew 2015-11-24 22:00:44 UTC
(In reply to craig001 from comment #4)

As I already mentioned in comment stream on #194409, it is not a problem of GlusterFS.
I have attached the patch in my comment on that bug.
Comment 6 andrew 2015-11-24 22:01:22 UTC
(In reply to craig001 from comment #4)

As I already mentioned in comment stream on #194409, it is not a problem of GlusterFS.
I have attached the patch in my comment on that bug.
Comment 7 craig001 2015-12-04 11:07:37 UTC
thanks again to andrew@rinet.ru 

I'm closing this as fixed, tested this morning against 3.7.6 as per other PR.
Normal users can now see the mount.

craig@zbox:/mnt/glusterfs> df -h .
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/fuse     298G    384K    298G     0%    /mnt/glusterfs

craig@zbox:/mnt/glusterfs> mount | grep gluster
/dev/fuse on /mnt/glusterfs (fusefs, local, synchronous)

craig@zbox:/mnt/glusterfs> ls -l
total 1
-rw-r--r--  1 root  wheel  4 23 Jun 02:36 yahoo