uds_init();
buf_pool();
- if ((pw = getpwnam(SERVICE_LOGIN)) == NULL)
- panic("unable to retrieve uid of SERVICE_LOGIN");
- if (setuid(pw->pw_uid) != 0)
+
+ /* Drop root privileges */
+ if ((pw = getpwnam(SERVICE_LOGIN)) == NULL) {
+ printf("PFS: unable to retrieve uid of SERVICE_LOGIN, "
+ "still running as root");
+ } else if (setuid(pw->pw_uid) != 0) {
panic("unable to drop privileges");
+ }
+
SELF_E = getprocnr();
return(OK);
}
/* Drop root privileges */
- if ((pw = getpwnam(SERVICE_LOGIN)) == NULL)
- ip_panic(("inet: unable to retrieve uid of SERVICE_LOGIN"));
- if (setuid(pw->pw_uid) != 0)
+ if ((pw = getpwnam(SERVICE_LOGIN)) == NULL) {
+ printf("inet: unable to retrieve uid of SERVICE_LOGIN, "
+ "still running as root");
+ } else if (setuid(pw->pw_uid) != 0) {
ip_panic(("inet: unable to drop privileges"));
+ }
/* Announce we are up. INET announces its presence to VFS just like
* any other character driver.