Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 219627

Summary: net-misc/ntp - ntpd fails with caps USE flag set
Product: Gentoo Linux Reporter: Andrew John Hughes <gnu_andrew>
Component: [OLD] ServerAssignee: SpanKY <vapier>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrew John Hughes 2008-04-28 20:42:06 UTC
ntpd is run as user ntp in group ntp.  But this fails if capabilities are turned on and ntpd silently crashes:

capset(0x19980330, 0, {CAP_NET_BIND_SERVICE|CAP_SYS_TIME, CAP_NET_BIND_SERVICE|CAP_SYS_TIME, CAP_NET_BIND_SERVICE|CAP_SYS_TIME}) = -1 EPERM (Operation not permitted)

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-04-28 20:46:22 UTC
Does it fail because it runs as the wrong user or because Linux Capabilities is disabled in your kernel? Does it work when you run it as root?

emerge --info too, please.

Oh, and I assume this is about net-misc/ntp.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-04-30 15:59:35 UTC
*** Bug 219654 has been marked as a duplicate of this bug. ***