mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
Capabilities will be shared among collection of threads. A pager will have a right to share its own capabilities with its space, its thread group and its container. Currently sharing is possible with only all of the caps. Next, it will be support for cap splitting, granting, and partial sharing and granting.
19 lines
410 B
C
19 lines
410 B
C
/*
|
|
* Syscall API for capability manipulation
|
|
*
|
|
* Copyright (C) 2009 Bahadir Balban
|
|
*/
|
|
#ifndef __API_CAPABILITY_H__
|
|
#define __API_CAPABILITY_H__
|
|
|
|
/* Capability syscall request types */
|
|
#define CAP_CONTROL_NCAPS 0
|
|
#define CAP_CONTROL_READ 1
|
|
#define CAP_CONTROL_SHARE 2
|
|
|
|
#define CAP_SHARE_WITH_SPACE 1
|
|
#define CAP_SHARE_WITH_CONTAINER 2
|
|
#define CAP_SHARE_WITH_TGROUP 4
|
|
|
|
#endif /* __API_CAPABILITY_H__ */
|