Remove two hypothetical calls to suser() in ifdef'd (and uncompilable)
svr4 code: this code would call centralized sysctl code that does these checks also. MFC after: 1 week Obtained from: TrustedBSD Project Sponsored by: nCircle Network Security, Inc.
This commit is contained in:
parent
81273e0632
commit
0ee913128d
@ -470,14 +470,10 @@ svr4_sys_systeminfo(td, uap)
|
||||
break;
|
||||
#if defined(WHY_DOES_AN_EMULATOR_WANT_TO_SET_HOSTNAMES)
|
||||
case SVR4_SI_SET_HOSTNAME:
|
||||
if ((error = suser(td)) != 0)
|
||||
return error;
|
||||
name = KERN_HOSTNAME;
|
||||
return kern_sysctl(&name, 1, 0, 0, uap->buf, rlen, td);
|
||||
|
||||
case SVR4_SI_SET_SRPC_DOMAIN:
|
||||
if ((error = suser(td)) != 0)
|
||||
return error;
|
||||
name = KERN_NISDOMAINNAME;
|
||||
return kern_sysctl(&name, 1, 0, 0, uap->buf, rlen, td);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user