diff options
-rw-r--r-- | trans/null.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/trans/null.c b/trans/null.c index 1f985b39..8b3b4e0f 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); |