Displaying 1 result from an estimated 1 matches for "bindhostnam".
Did you mean:
bindhostname
2004 Jun 04
3
syslogd(8) Dropping Privs
...@
#include <libutil.h>
#include <limits.h>
#include <paths.h>
+#include <pwd.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
@@ -334,9 +335,12 @@
sigset_t mask;
pid_t ppid = 1;
socklen_t len;
+ struct passwd *pw;
+ uid_t runAs;
bindhostname = NULL;
- while ((ch = getopt(argc, argv, "46Aa:b:cdf:kl:m:np:P:suv")) != -1)
+ runAs = getuid();
+ while ((ch = getopt(argc, argv, "46Aa:b:cdf:kl:m:np:P:suU:v")) != -1)
switch (ch) {
case '4':
family = PF_INET;
@@ -393,6 +397,11 @@
case 'u': /* on...