Re: [PATCH v5 06/10] nx: set page permissions for loaded modules.

2024-08-21 Thread Daniel Kiper
On Thu, Aug 15, 2024 at 10:51:31AM +0100, Mate Kukri wrote: > For NX, we need to set write and executable permissions on the sections > of grub modules when we load them. > > On sections with SHF_ALLOC set, which is typically everything except > .modname and the symbol and string tables, this patch

[PATCH v5 06/10] nx: set page permissions for loaded modules.

2024-08-15 Thread Mate Kukri
For NX, we need to set write and executable permissions on the sections of grub modules when we load them. On sections with SHF_ALLOC set, which is typically everything except .modname and the symbol and string tables, this patch clears the Read Only flag on sections that have the ELF flag SHF_WRI