eth-cscs/squashfs-mount

Propagate LD_* variables

Opened this issue · 0 comments

LD_* variables are unset by the kernel when executing setuid binaries, but it'd be nice to propagate them to the command we're executing after dropping privileges. The only way to do that is through a non-setuid wrapper (such as squashfs-run).

Effectively: squashfs-mount [file] [location] env "LD_XXX=$LD_XXX" [command...]