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

2024-09-27 Thread Daniel Kiper
On Thu, Sep 19, 2024 at 05:32:00PM +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 v6 06/10] nx: set page permissions for loaded modules.

2024-09-19 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