mirror of
https://github.com/libfuse/libfuse.git
synced 2024-11-23 04:04:31 +08:00
c9bf7d3e20
umount2 is called with privs dropped, not raised. This works around a clash with NFS permissions: if FUSE mounted on NFS client directory with root_squash in effect, and some directory in the path leading to the mount point denies permissions to others, umount2 will fail because userid 0 cannot search it. Since drop_privs merely sets the file- system user- and group-ID without changing the CAP_SYS_ADMIN capability needed to unmount a file system (which fusermount has because it is set-user-ID root), umount2 works fine. |
||
---|---|---|
.. | ||
.gitignore | ||
fuse.conf | ||
fusermount.c | ||
init_script | ||
install_helper.sh | ||
meson.build | ||
mount.fuse.c | ||
parse-backtrace.sh | ||
udev.rules |