Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src
matthew green wrote:
> something is broken here i think. my sparc64 system can't run ntpd.
> it spins calling geteuid() and ntp_ajdtime(). ntp_adjtime() gets an
> EPERM ... it doesn't matter if i run ntpd as root or as ntpd:ntpd.
Can you try attached patch?
-e.
--
Elad Efrat
Index: kern_ntptime.c
===================================================================
RCS file: /usr/cvs/src/sys/kern/kern_ntptime.c,v
retrieving revision 1.36
diff -u -p -r1.36 kern_ntptime.c
--- kern_ntptime.c 8 Sep 2006 20:58:57 -0000 1.36
+++ kern_ntptime.c 8 Sep 2006 06:39:48 -0000
@@ -1017,8 +1017,8 @@ sys_ntp_adjtime(l, v, retval)
if (error != 0)
return (error);
- if (ntv.modes != 0 && (error = kauth_authorize_network(l->l_cred,
- KAUTH_SYSTEM_TIME, (void *)KAUTH_REQ_SYSTEM_TIME_NTPADJTIME, NULL,
+ if (ntv.modes != 0 && (error = kauth_authorize_system(l->l_cred,
+ KAUTH_SYSTEM_TIME, KAUTH_REQ_SYSTEM_TIME_NTPADJTIME, NULL,
NULL, NULL)) != 0)
return (error);
Home |
Main Index |
Thread Index |
Old Index