mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01:00
Notion of pager hierarchy introduced using the existing but unused pagerid field. Thread creation now has two more flags TC_AS_PAGER and TC_SHARE_PAGER. The former sets creator as pager, the latter sets creator's pager as pager. Thread group capability sharing now correctly carries shared capabilities to the thread group leader's tgr_cap_list list, and this list is checked during capability checking.
20 lines
452 B
C
20 lines
452 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_SPACE 1
|
|
#define CAP_SHARE_CONTAINER 2
|
|
#define CAP_SHARE_GROUP 4
|
|
#define CAP_SHARE_PAGED 8 /* All that we are pager of */
|
|
|
|
#endif /* __API_CAPABILITY_H__ */
|