Simplified cap id finding and destroying it.

It is not very straightforward to reach a capabilities list. We
now use a single function to find out a capability by its id and
its list, since the two are used frequently together (i.e. cap
removal and destruction)
This commit is contained in:
Bahadir Balban
2009-11-09 23:50:03 +02:00
parent ff14ce4735
commit d43fa1d3ae
3 changed files with 27 additions and 58 deletions

View File

@@ -146,9 +146,7 @@ struct capability *capability_find_by_rtype(struct ktcb *task,
struct capability *cap_list_find_by_rtype(struct cap_list *clist,
unsigned int rtype);
struct capability *cap_find_byid(l4id_t capid);
int cap_find_destroy(l4id_t capid);
struct capability *cap_find_by_capid(l4id_t capid, struct cap_list **clist);
/* Capability checking on system calls */
int cap_map_check(struct ktcb *task, unsigned long phys, unsigned long virt,