Skip to content

Commit

Permalink
arm64: Relax permissions on preloaded metadata
Browse files Browse the repository at this point in the history
Some routines, preload_delete_name() in particular, need write permission.
  • Loading branch information
markjdb authored and bsdjhb committed Aug 1, 2024
1 parent 2a11c7b commit 81f320d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/arm64/arm64/machdep_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ freebsd_parse_boot_param(struct arm64_bootparams *abp)

preload_metadata = (caddr_t)(uintptr_t)(abp->modulep);
preload_metadata = cheri_kern_andperm(preload_metadata,
CHERI_PERMS_KERNEL_RODATA & CHERI_PERMS_KERNEL_DATA_NOCAP);
CHERI_PERMS_KERNEL_DATA & CHERI_PERMS_KERNEL_DATA_NOCAP);
kmdp = preload_search_by_type("elf kernel");
if (kmdp == NULL)
return (0);
Expand Down

0 comments on commit 81f320d

Please sign in to comment.