diff options
author | aszlig <aszlig@redmoonstudios.org> | 2017-09-27 22:27:31 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2017-10-03 23:41:26 +0200 |
commit | 8d77ca6a9a94d4547a0abc8f27753fb7755e69cd (patch) | |
tree | 0163efed1c3b26aff4d3a69a80923de5bb1108d2 /pkgs/games/build-support/setup-hooks/auto-patchelf.sh | |
parent | ede9acb3d19d981c66082323e0a02c7f42530dc8 (diff) |
pkgs/sandbox: Use own store path as root directory
I've already pointed out in the previous commit that using /tmp for the root directory isn't a very good idea, mainly because we can't access sockets from /tmp (eg. the X server sockets). So what we're now doing is using the store path that contains the sandbox wrappers, because that very path won't be mounted into the sandbox anyway, so we get a free directory just as an entry point. This has the main advantage that we don't need to create any temporary directories which we later need to clean up nor do we need to assume that some paths might exist in the system. For example if we'd use /usr we still have /usr/bin/env on NixOS, but if that's going to go away in the future or we are on a distro that doesn't have it at all, the sandbox setup will fail. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/games/build-support/setup-hooks/auto-patchelf.sh')
0 files changed, 0 insertions, 0 deletions