commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 19/70: trans: drop privileges in the null translator


From: Samuel Thibault
Subject: [hurd] 19/70: trans: drop privileges in the null translator
Date: Mon, 16 Sep 2013 07:41:37 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit a0ac380bb3fd07f61566511c4fdf18da748dcfa9
Author: Justus Winter <address@hidden>
Date:   Sat Jul 27 15:32:04 2013 +0200

    trans: drop privileges in the null translator
    
    * trans/null.c (main): Drop privileges.
---
 trans/null.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/trans/null.c b/trans/null.c
index 1f985b3..8b3b4e0 100644
--- a/trans/null.c
+++ b/trans/null.c
@@ -31,6 +31,7 @@
 #include <fcntl.h>
 #include <limits.h>
 #include <argp.h>
+#include <nullauth.h>
 
 const char *argp_program_version = STANDARD_HURD_VERSION (null);
 
@@ -78,6 +79,10 @@ main (int argc, char **argv)
   if (err)
     error(3, err, "Contacting parent");
 
+  err = setnullauth ();
+  if (err)
+    error(4, err, "Dropping privileges");
+
   /* Launch. */
   ports_manage_port_operations_multithread (fsys->pi.bucket, trivfs_demuxer,
                                            2 * 60 * 1000, 0, 0);

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]