mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01:00
Updated test example cml. Also update to various comments
This commit is contained in:
@@ -88,7 +88,6 @@ CONFIG_CONT0_OPT_NAME="caps"
|
||||
#
|
||||
CONFIG_CONT0_PAGER_LMA=0x40000
|
||||
CONFIG_CONT0_PAGER_VMA=0x10000000
|
||||
CONFIG_CONT0_PAGER_SIZE=0x40000
|
||||
|
||||
|
||||
#
|
||||
|
||||
@@ -99,9 +99,7 @@ struct capability *cap_list_find_by_rtype(struct cap_list *cap_list,
|
||||
* to free it to.
|
||||
*
|
||||
* In conclusion freeing of pool-type capabilities need to be done
|
||||
* in order of privacy. -> It may get confusing as a space, thread
|
||||
* group id or paged-thread group is not necessarily in a different
|
||||
* privacy ring.
|
||||
* in order of privacy.
|
||||
*/
|
||||
struct capability *capability_find_by_rtype(struct ktcb *task,
|
||||
unsigned int rtype)
|
||||
@@ -453,7 +451,7 @@ struct capability *cap_match_thread(struct capability *cap,
|
||||
|
||||
if (action_flags == THREAD_CREATE) {
|
||||
/*
|
||||
* FIXME: Add cid to task_ids arg.
|
||||
* TODO: Add cid to task_ids arg.
|
||||
*
|
||||
* Its a thread create and we have no knowledge of
|
||||
* thread id, space id, or any other id.
|
||||
@@ -618,8 +616,8 @@ int cap_map_check(struct ktcb *target, unsigned long phys, unsigned long virt,
|
||||
|
||||
/*
|
||||
* Limitation: We currently only check from sender's
|
||||
* perspective. Sender always targets a real thread.
|
||||
* Does sender have the right to do this ipc?
|
||||
* perspective. This is because sender always targets a
|
||||
* real thread. Does sender have the right to do this ipc?
|
||||
*/
|
||||
int cap_ipc_check(l4id_t to, l4id_t from,
|
||||
unsigned int flags, unsigned int ipc_type)
|
||||
@@ -716,7 +714,7 @@ int cap_thread_check(struct ktcb *task,
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
#endif /* End of !CONFIG_CAPABILITIES */
|
||||
|
||||
/*
|
||||
* FIXME:
|
||||
|
||||
Reference in New Issue
Block a user