Some libpthread functions require the additional capabilities listed below:
Capability
|
Description
|
PowerMgmt |
Grants the right:
- to kill any process in the system
- to power off unused peripherals
- to switch the machine into standby state
- to power the machine down completely.
Note that this does not control access to anything that might drain battery
power.
The following functions require PowerMgmt capabilities:
- pthread_create
- pthread_detach
- pthread_exit
- pthread_getschedparam
- pthread_getspecific
- pthread_join
- pthread_key_create
- pthread_key_delete
- pthread_setschedparam
|
ProtServ |
Grants the right to a server to register with a protected name. Currently,
protected names start with a "!" character. The kernel prevents servers without
this capability from using such a name, and therefore prevents protected servers
from being impersonated. The thread create case (pthread_create() ) needs
ProtServ capability. It uses the User::SetCritical () API.The following
functions require ProtServ capabilities:
- pthread_cond_broadcast
- pthread_cond_destroy
- pthread_cond_init
- pthread_cond_signal
- pthread_cond_timedwait
- pthread_cond_wait
- pthread_create
- pthread_detach
- pthread_exit
- pthread_getschedparam
- pthread_getspecific
- pthread_join
- pthread_key_create
- pthread_key_delete
- pthread_mutex_destroy
- pthread_mutex_init
- pthread_mutex_lock
- pthread_mutex_timedlock
- pthread_mutex_trylock
- pthread_mutex_unlock
- pthread_once
- pthread_self
- pthread_setschedparam
- pthread_setspecific
- sem_destroy
- sem_init
|
Give
feedback of this article