diskfile icon indicating copy to clipboard operation
diskfile copied to clipboard

mountpoint declared permissions not coherent with behaviour

Open lmamane opened this issue 9 years ago • 0 comments

$ mount|grep diskfile diskfile on /diskfile type fuse.diskfile (rw,relatime,user_id=0,group_id=0) $ ls -ld /diskfile ls: cannot access /diskfile: Permission denied $ ls -l /|grep diskfile ls: cannot access /diskfile: Permission denied d????????? ? ? ? ? ? diskfile

Compare:

$ sudo mkdir FOO $ sudo chmod o-rwx FOO/ $ ls -ld FOO drwxr-x--- 2 root root 4096 Jul 7 12:36 FOO $ ls -l |grep FOO drwxr-x--- 2 root root 4096 Jul 7 12:36 FOO

That is, a user that does not have any access to a directory can still list that directory's permission bits and times (in essence, do a stat() call).

Additionally:

$ sudo ls -ld /diskfile dr-xr-xr-x 3 root root 0 Jan 1 1970 /diskfile

this says that any user can do a "cd /diskfile" and "ls /diskfile". But no: $ cd /diskfile bash: cd: /diskfile: Permission denied $ ls -l /diskfile ls: cannot access /diskfile: Permission denied

lmamane avatar Jul 07 '16 10:07 lmamane