Skip to content

Commit

Permalink
Set CHERIABI_VMMAP permission bit on the MIPS root_userspace_cap.
Browse files Browse the repository at this point in the history
  • Loading branch information
qwattash committed Feb 12, 2021
1 parent 8a0d887 commit ec1e66a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/mips/cheri/cheri.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ cheri_init_capabilities(void * __capability kroot)
ctemp = cheri_setaddress(kroot, CHERI_CAP_USER_DATA_BASE);
ctemp = cheri_setbounds(ctemp, CHERI_CAP_USER_DATA_LENGTH);
ctemp = cheri_andperm(ctemp, CHERI_CAP_USER_DATA_PERMS |
CHERI_CAP_USER_CODE_PERMS);
CHERI_CAP_USER_CODE_PERMS | CHERI_PERM_CHERIABI_VMMAP);
userspace_root_cap = ctemp;

ctemp = cheri_setaddress(kroot, CHERI_SEALCAP_KERNEL_BASE);
Expand Down

0 comments on commit ec1e66a

Please sign in to comment.