guix/nix/libstore
Hartmut Goebel 2608e40988
daemon: Set ownership of kept build directories to the calling user.
Fixes <http://bugs.gnu.org/15890>.

* nix/libstore/globals.hh (Settings) Add clientUid and clientGid.
* nix/nix-daemon/nix-daemon.cc (daemonLoop] Store UID and GID of the
  caller in settings.
* nix/libstore/build.cc (_chown): New function.
  (DerivationGoal::deleteTmpDir): Use it, change ownership of build
  directory if it is kept and the new owner is not root.
2016-12-09 15:46:09 +01:00
..
.gitignore
build.cc daemon: Set ownership of kept build directories to the calling user. 2016-12-09 15:46:09 +01:00
builtins.cc daemon: Add 'built-in-builders' RPC. 2016-11-16 18:19:54 +01:00
builtins.hh daemon: Add 'built-in-builders' RPC. 2016-11-16 18:19:54 +01:00
derivations.cc
derivations.hh
gc.cc
globals.cc daemon: Rename 'NIX_CONF_DIR' to 'GUIX_CONFIGURATION_DIRECTORY'. 2016-06-26 23:11:07 +02:00
globals.hh daemon: Set ownership of kept build directories to the calling user. 2016-12-09 15:46:09 +01:00
local-store.cc daemon: Improve the SQLite wrapper API. 2016-10-28 22:30:17 +02:00
local-store.hh daemon: Improve the SQLite wrapper API. 2016-10-28 22:30:17 +02:00
misc.cc
misc.hh
optimise-store.cc daemon: Fix invalid Boost format string. 2016-12-05 18:18:10 +01:00
pathlocks.cc daemon: ~PathLocks(): Handle exceptions. 2016-05-31 14:25:28 +02:00
pathlocks.hh
references.cc
references.hh
schema.sql
sqlite.cc daemon: Improve the SQLite wrapper API. 2016-10-28 22:30:17 +02:00
sqlite.hh daemon: Improve the SQLite wrapper API. 2016-10-28 22:30:17 +02:00
store-api.cc daemon: Remove unused 'RemoteStore' class. 2015-12-30 01:20:41 +01:00
store-api.hh daemon: Improve the SQLite wrapper API. 2016-10-28 22:30:17 +02:00
worker-protocol.hh daemon: Add 'built-in-builders' RPC. 2016-11-16 18:19:54 +01:00