nixpkgs/pkgs/os-specific
Symphorien Gibol fbb8dbdac6 fuse: fix mount.fuse -o setuid=...
when mounting a fuse fs by fstab on can write:
/nix/store/sdlflj/bin/somefuseexe#argument /mountpoint fuse setuid=someuser

mount is run by root, and setuid is a way to tell mount.fuse to run
somefuseexe as someuser instead. Under the hood, mount.fuse uses su.
The problem is that mount is run by systemd in a seemingly very empty
environment not containing /run/current-system/sw/bin nor
/run/wrappers/bin in $PATH, so mount fails with "su command not found".

We now patch the command to run su with an absolute path.

man mount.fuse3 indicates that this option is reserved to root (or with
enough capabilities) so not using
/run/wrappers/bin/su is thus correct. It has the very small advantage of
possibly working on non nixos.
2021-04-17 21:51:40 +02:00
..
bsd yacc: deprecate alias 2021-04-04 03:18:58 +02:00
darwin sshfs: add darwin build 2021-04-06 10:37:53 +09:00
linux fuse: fix mount.fuse -o setuid=... 2021-04-17 21:51:40 +02:00
solo5 solo5: disable checkPhase instead of setting to null, run hooks 2021-03-26 11:06:31 +01:00
windows lzma: deprecate alias 2021-04-04 19:49:52 +02:00