On 11/03/2024 10:28, Amit Daniel Kachhap wrote:
+user_ptr_perms_t user_ptr_perms_from_prot(int prot __maybe_unused,
I would add "owning" to the function name, to highlight this is to be used only for owning capabilities.
Kevin
bool has_tag_access __maybe_unused)
+{
- /* TODO [PCuABI] - capability permission conversion from memory permission */
- return (CHERI_PERMS_READ | CHERI_PERMS_WRITE |
CHERI_PERMS_EXEC | CHERI_PERMS_ROOTCAP);
+}