diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-10-08 15:49:02 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-10-08 22:39:39 +0200 |
commit | 0fd357b48642f16c3adf8ed474f299daecef2613 (patch) | |
tree | 0dc3dda36818be9c7e3f8bd8d8778e25b39a04ab /tmpfs | |
parent | 9ba4ba4394e729560e72148a0e52160faf83893f (diff) |
Revert "tmpfs: drop privileges in the tmpfs translator"
This reverts commit 7075bc11289355478659cd1610632a9299734afc.
Dropping the unix privileges of the tmpfs translator causes problems
with the passive translator startup. The function fshelp_fetch_root
creates an auth handle containing the processes original UID and
GID. But if the privileges were dropped before, this operation fails
with EPERM.
This commit also broke mkfifo(3), possibly for similar or related
reasons.
* tmpfs/tmpfs.c (main): Do not drop all privileges.
Diffstat (limited to 'tmpfs')
-rw-r--r-- | tmpfs/tmpfs.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tmpfs/tmpfs.c b/tmpfs/tmpfs.c index 1872a7df..7da3dd58 100644 --- a/tmpfs/tmpfs.c +++ b/tmpfs/tmpfs.c @@ -29,7 +29,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <fcntl.h> #include <hurd.h> #include <hurd/paths.h> -#include <nullauth.h> char *diskfs_server_name = "tmpfs"; char *diskfs_server_version = HURD_VERSION; @@ -438,11 +437,6 @@ main (int argc, char **argv) /* We must keep the REALNODE send right to remain the active translator for the underlying node. */ - /* Drop all privileges. */ - err = setnullauth(); - if (err) - error (1, err, "Could not drop privileges"); - pthread_mutex_unlock (&diskfs_root_node->lock); /* and so we die, leaving others to do the real work. */ |