mirror of
https://github.com/drasko/codezero.git
synced 2026-01-31 20:23:14 +01:00
Merged MAP and VIRTMEM/PHYSMEM capabilities into one.
VIRTMEM and PHYSMEM are theoretically separate resources to be protected than a MAP resource, which is meant to protect the syscall privileges. In practice MAP is always used together with a VIRTMEM and a PHYSMEM resource, therefore reach VIRTMEM/PHYSMEM resource is now merged with the MAP capability, combining the micro-permission bits.
This commit is contained in:
@@ -89,9 +89,13 @@ void cap_print(struct capability *cap)
|
||||
case CAP_TYPE_EXREGS:
|
||||
printf("Capability type:\t\t%s\n", "Exchange Registers");
|
||||
break;
|
||||
case CAP_TYPE_MAP:
|
||||
printf("Capability type:\t\t%s\n", "Map");
|
||||
case CAP_TYPE_MAP_PHYSMEM:
|
||||
printf("Capability type:\t\t%s\n", "Map/Physmem");
|
||||
break;
|
||||
case CAP_TYPE_MAP_VIRTMEM:
|
||||
printf("Capability type:\t\t%s\n", "Map/Virtmem");
|
||||
break;
|
||||
|
||||
case CAP_TYPE_IPC:
|
||||
printf("Capability type:\t\t%s\n", "Ipc");
|
||||
break;
|
||||
@@ -119,12 +123,6 @@ void cap_print(struct capability *cap)
|
||||
case CAP_RTYPE_CONTAINER:
|
||||
printf("Capability resource type:\t%s\n", "Container");
|
||||
break;
|
||||
case CAP_RTYPE_VIRTMEM:
|
||||
printf("Capability resource type:\t%s\n", "Virtual Memory");
|
||||
break;
|
||||
case CAP_RTYPE_PHYSMEM:
|
||||
printf("Capability resource type:\t%s\n", "Physical Memory");
|
||||
break;
|
||||
case CAP_RTYPE_THREADPOOL:
|
||||
printf("Capability resource type:\t%s\n", "Thread Pool");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user