On 03/11/2022 11:20, Amit Kachhap wrote:
Along with above we may also need coarse type permissions for
binfmtelf.c.

Are you thinking about something in particular, apart from AT_CHERI_* that will clearly make use of CHERI_PERMS_*?

Probably AT_CHERI_* definitions should suffice for us. Also I suppose it can be placed in generic include/linux/elf.h or something similar.

What do you think should be added to linux/elf.h? CHERI_PERMS_* is provided as part of linux/cheri.h along with the rest of the CHERI-specific definitions.

Kevin