]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: always allow query of st_dev
authorMiklos Szeredi <mszeredi@redhat.com>
Tue, 19 May 2020 12:50:37 +0000 (14:50 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 19 May 2020 12:50:37 +0000 (14:50 +0200)
commit3da63aa559d82fb776d6decdc1a83493c97928e1
tree6d46fbd5faea1d2a8c5bff2d14c1be1535d7bd86
parent3c5a081d9b006fc4903f7f49c6d3f5cfe1ab758e
fuse: always allow query of st_dev

Fuse mounts without "allow_other" are off-limits to all non-owners.  Yet it
makes sense to allow querying st_dev on the root, since this value is
provided by the kernel, not the userspace filesystem.

Allow statx(2) with a zero request mask to succeed on a fuse mounts for all
users.

Reported-by: Nikolaus Rath <Nikolaus@rath.org>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dir.c