Bug 31490

Summary: permissions on /dev/fuse get broken and fusermount fails
Product: Branch p7 Reporter: Ivan Zakharyaschev <imz>
Component: fuseAssignee: Andrey Cherepanov <cas>
Status: CLOSED FIXED QA Contact: qa-p7 <qa-p7>
Severity: major    
Priority: P3    
Version: не указана   
Hardware: all   
OS: Linux   
Bug Depends on: 29444    
Bug Blocks: 31491    

Description Ivan Zakharyaschev 2015-11-14 15:02:49 MSK
fuse-2.9.2-alt2

I'm using it with "control fusermount public". After some time, the permissions on /dev/fuse lack any permissions for other (i.e., are 0660), and fusermount fails to work.

fuse-2.9.4-alt3 from Sisyphus seems not have this problem.

I've reproduced this in a clean installation of Simply Linux 7.0.5.

Preparation:

install Simply Linux 7.0.5 (x86_64)

service sshd start

install fuse-sshfs 

control fusermount public

The test (as a user):

mkdir test
touch test/a
mkdir mnt
sshfs 0:test mnt
ls mnt
fusermount -u mnt

The first time the test works, because initally the permissions on /dev/fuse are like this:

crw-rw-rw- 1 root fuse 10, 229 ноя 13 17:03 /dev/fuse

but the second time the test fails, because after the first test /dev/fuse lacks the permissions for other.

"control fusermount public" has nothing to do with this (/dev/fuse), it controls the permission needed by fusermount to do a mount.
Comment 1 Ivan Zakharyaschev 2015-11-14 15:11:22 MSK
The permissions on /dev/fuse change after the execution of:

sshfs 0:test mnt

during the first test.
Comment 2 Ivan Zakharyaschev 2015-11-15 00:33:08 MSK
This might be related with https://bugzilla.altlinux.org/show_bug.cgi?id=29444 , but I'm not sure (perhaps, the fix comes from some changes in the implementation).
Comment 3 Repository Robot 2015-11-16 16:00:08 MSK
fuse-2.9.4-alt2.M70P.1 -> p7:

* Mon Nov 16 2015 Andrey Cherepanov <cas@altlinux> 2.9.4-alt2.M70P.1
- Backport fix to p7 branch (ALT #31490)

* Sun Sep 06 2015 Denis Smirnov <mithraen@altlinux> 2.9.4-alt3
- fix fuserumount script access (ALT#31225)

* Mon Aug 24 2015 Denis Smirnov <mithraen@altlinux> 2.9.4-alt2
- add fuserumount script (ALT#31225)

* Wed May 27 2015 Denis Smirnov <mithraen@altlinux> 2.9.4-alt1
- 2.9.4

* Sun Feb 09 2014 Denis Smirnov <mithraen@altlinux> 2.9.3-alt4
- fix wheelonly mode, thanks legion@ (ALT#29814)

* Wed Jan 29 2014 Michael Shigorin <mike@altlinux> 2.9.3-alt3
- drop cuse.conf: conflicts with another one, see #29444 (ALT#29777)

* Thu Oct 10 2013 Denis Smirnov <mithraen@altlinux> 2.9.3-alt2
- not use /lib/udev/devices (ALT#29444)

* Mon Aug 05 2013 Denis Smirnov <mithraen@altlinux> 2.9.3-alt1
- 2.9.3