/[base]
ViewVC logotype

Revision 346088


Jump to revision: Previous Next
Author: asomers
Date: Wed Apr 10 17:31:00 2019 UTC (5 years, 2 months ago)
Changed paths: 11
Log Message:
fusefs: WIP supporting -o default_permissions

Normally all permission checking is done in the fuse server.  But when -o
default_permissions is used, it should be done in the kernel instead.  This
commit adds appropriate permission checks through fusefs when -o
default_permissions is used.  However, sticky bit checks aren't working yet.
I'll handle those in a follow-up commit.

There are no checks for file flags, because those aren't supported by our
version of the FUSE protocol.  Nor is there any support for ACLs, though
that could be added if there were any demand.

PR:		216391
Reported by:	hiyorin@gmail.com
Sponsored by:	The FreeBSD Foundation


Changed paths

Path Details
Directoryprojects/fuse2/sys/fs/fuse/fuse_internal.c modified , text changed
Directoryprojects/fuse2/sys/fs/fuse/fuse_internal.h modified , text changed
Directoryprojects/fuse2/sys/fs/fuse/fuse_vnops.c modified , text changed
Directoryprojects/fuse2/tests/sys/fs/fusefs/default_permissions.cc modified , text changed
Directoryprojects/fuse2/tests/sys/fs/fusefs/destroy.cc modified , text changed
Directoryprojects/fuse2/tests/sys/fs/fusefs/lookup.cc modified , text changed
Directoryprojects/fuse2/tests/sys/fs/fusefs/setattr.cc modified , text changed
Directoryprojects/fuse2/tests/sys/fs/fusefs/unlink.cc modified , text changed
Directoryprojects/fuse2/tests/sys/fs/fusefs/utils.cc modified , text changed
Directoryprojects/fuse2/tests/sys/fs/fusefs/utils.hh modified , text changed
Directoryprojects/fuse2/tests/sys/fs/fusefs/xattr.cc modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27