Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219627 - net-misc/ntp - ntpd fails with caps USE flag set
Summary: net-misc/ntp - ntpd fails with caps USE flag set
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-28 20:42 UTC by Andrew John Hughes
Modified: 2008-05-04 11:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***