* mount: add -idmap to allow ID-mapped bind mounts
FUSE allows ID-mapped mounts only for a server that announces FUSE_ALLOW_IDMAP.
Once announced, the kernel sends uid and gid 0xFFFFFFFF on most requests after checking permissions itself, so the checks that read the caller treat that value as already checked.
* fuse: refuse an unsupported -o idmap before starting the child
The child exits on checkIdmap, but the parent waits for its readiness signal
and never returns, so weed fuse -o idmap hung on macOS and FreeBSD.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: refuse -idmap on Windows instead of ignoring it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fuse: take -o defaultPermissions as the mount flag
-o defaultPermissions=false was forwarded to the kernel as an unknown
option, which failed the mount, and left the flag at true, so
-o idmap,defaultPermissions=false passed the idmap check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>