From a478e8a7bb8c24da0ac91b7100bd0e422035c62f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 14 Nov 2013 11:57:37 +0100 Subject: Remove nix-setuid-helper AFAIK, nobody uses it, it's not maintained, and it has no tests. --- src/libstore/local-store.hh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/libstore/local-store.hh') diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index adba52fd46a9..1ace7cec996b 100644 --- a/src/libstore/local-store.hh +++ b/src/libstore/local-store.hh @@ -322,7 +322,7 @@ typedef set InodesSeen; - the permissions are set of 444 or 555 (i.e., read-only with or without execute permission; setuid bits etc. are cleared) - the owner and group are set to the Nix user and group, if we're - in a setuid Nix installation. */ + running as root. */ void canonicalisePathMetaData(const Path & path, uid_t fromUid, InodesSeen & inodesSeen); void canonicalisePathMetaData(const Path & path, uid_t fromUid); @@ -330,16 +330,4 @@ void canonicaliseTimestampAndPermissions(const Path & path); MakeError(PathInUse, Error); -/* Whether we are root. */ -bool amPrivileged(); - -/* Recursively change the ownership of `path' to the current uid. */ -void getOwnership(const Path & path); - -/* Like deletePath(), but changes the ownership of `path' using the - setuid wrapper if necessary (and possible). */ -void deletePathWrapped(const Path & path, unsigned long long & bytesFreed); - -void deletePathWrapped(const Path & path); - } -- cgit 1.4.1