mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01:00
Cleaned up various bits with capability syscalls.
Made grant interace same as other calls. Corrected counting and reading of task capabilities by applying it to all cap lists that a task has right.
This commit is contained in:
@@ -30,8 +30,4 @@
|
||||
#define CAP_SPLIT_ACCESS 0x00000002
|
||||
#define CAP_SPLIT_RANGE 0x00000003 /* Returns -EPERM */
|
||||
|
||||
/* Task's primary capability list */
|
||||
#define TASK_CAP_LIST(task) \
|
||||
(&((task)->space->cap_list))
|
||||
|
||||
#endif /* __API_CAPABILITY_H__ */
|
||||
|
||||
@@ -143,7 +143,7 @@ int capability_consume(struct capability *cap, int quantity);
|
||||
int capability_free(struct capability *cap, int quantity);
|
||||
struct capability *capability_find_by_rtype(struct ktcb *task,
|
||||
unsigned int rtype);
|
||||
|
||||
int cap_count(struct ktcb *task);
|
||||
struct capability *cap_list_find_by_rtype(struct cap_list *clist,
|
||||
unsigned int rtype);
|
||||
struct capability *cap_find_by_capid(l4id_t capid, struct cap_list **clist);
|
||||
|
||||
Reference in New Issue
Block a user