OpenVZ Forum


Home » General » Support » Side effects of enabling CAP_SYS_TIME inside VE
Re: Side effects of enabling CAP_SYS_TIME inside VE [message #20547 is a reply to message #20535] Thu, 20 September 2007 13:07 Go to previous message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
Alex,
some action inside kernel (for example like setting system time) checks process permissions. However kernel do not checks process or user names, it checks process's capability for this purpose.
(you can read man 7 capabilities for more details)

Ususally capabilites are inherited from parent to children but parent process is able to restrict the children's permissions too.

By default cap_sys_time capability is not allowed inside VE, therefore even VE root cannot change system time.
As far as I understand ntpd tries to set cap_sys_time capability for its working thread and fails because it does not have this capability.

When cap_sys_time is allowed inside VE this operation finished with success, unprivileged working thread gets the capability allowing it to change the system time.

thank you,
Vasily Averin
 
Read Message icon4.gif
Read Message
Read Message
Previous Topic: deriving a configuration from the example configs
Next Topic: setting ACPI sleep support working
Goto Forum:
  


Current Time: Sun Jul 27 00:06:17 GMT 2025

Total time taken to generate the page: 0.81323 seconds