Skip to content

mountpoint declared permissions not coherent with behaviour #4

@lmamane

Description

@lmamane

$ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions