Re: [chrony-users] Fatal error : adjtimex() failed

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


On Thu, Aug 23, 2012 at 11:04:05AM +0100, Tomalak Geret'kal wrote:
> It seems odd that chrony fails to open /var/run/chrony.pid and fails
> to adjtimex(), presumably both through permissions errors (though
> this is only made clear-ish for the latter). There is *only* a root
> user on the device, and no selinux or anything of that ilk. The
> intermittent nature of the fault does not involve a change in user
> context. Still a race condition?

I'm not sure. In the 2.6.21 kernel's adjtimex code there seems to be
only one place returning EPERM a that's a check for the CAP_SYS_TIME
capability which root should always have (IIRC filesystem capabilities
were not supported yet). Any chance the binary could have the suid bit
set?

-- 
Miroslav Lichvar

-- 
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx 
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx 
with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/