diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2007-01-06 17:34:56 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2007-01-06 17:34:56 +0000 |
commit | 2ecbdbe5ebbef9e9f305a207fdcbfda5d7b27801 (patch) | |
tree | 20c6c9324751684ccae42a5208aed0c55f297f1d /pkgs/os-specific/linux/fuse | |
parent | c63c32e3b21fa30234d65249039e4314fe65b6ca (diff) | |
download | nixpkgs-2ecbdbe5ebbef9e9f305a207fdcbfda5d7b27801.tar nixpkgs-2ecbdbe5ebbef9e9f305a207fdcbfda5d7b27801.tar.gz nixpkgs-2ecbdbe5ebbef9e9f305a207fdcbfda5d7b27801.tar.bz2 nixpkgs-2ecbdbe5ebbef9e9f305a207fdcbfda5d7b27801.tar.lz nixpkgs-2ecbdbe5ebbef9e9f305a207fdcbfda5d7b27801.tar.xz nixpkgs-2ecbdbe5ebbef9e9f305a207fdcbfda5d7b27801.tar.zst nixpkgs-2ecbdbe5ebbef9e9f305a207fdcbfda5d7b27801.zip |
* Hack to allow the setuid root program fusermount to work.
svn path=/nixpkgs/trunk/; revision=7542
Diffstat (limited to 'pkgs/os-specific/linux/fuse')
-rw-r--r-- | pkgs/os-specific/linux/fuse/builder.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/fuse/builder.sh b/pkgs/os-specific/linux/fuse/builder.sh index c0c468e228b..5f0d53954e7 100644 --- a/pkgs/os-specific/linux/fuse/builder.sh +++ b/pkgs/os-specific/linux/fuse/builder.sh @@ -4,4 +4,13 @@ export MOUNT_FUSE_PATH=$out/sbin export INIT_D_PATH=$out/etc/init.d export UDEV_RULES_PATH=$out/etc/udev/rules.d +# This is ugly. Normally, FUSE executes $out/bin/fusermount to mount +# the file system. However, fusermount should be setuid root, but Nix +# doesn't support setuid binaries, so fusermount will fail. By +# setting FUSERMOUNT_DIR to a non-existant path, FUSE will fall back +# to searching for fusermount in $PATH. The user is responsible for +# (e.g.) setting up a setuid-wrapper for fusermount and adding it to +# $PATH. +export NIX_CFLAGS_COMPILE="-DFUSERMOUNT_DIR=\"/no-such-path\"" + genericBuild |