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

2024-10-08 Thread Daniel Kiper
On Fri, Oct 04, 2024 at 03:41:28PM +0100, Mate Kukri wrote: > For NX, we need to set write and executable permissions on the sections > of GRUB modules when we load them. > > All allocatable sections are marked readable. In addition, > - SHF_WRITE sections are marked as writable, > - and SHF_EXECIN

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

2024-10-04 Thread Mate Kukri
For NX, we need to set write and executable permissions on the sections of GRUB modules when we load them. All allocatable sections are marked readable. In addition, - SHF_WRITE sections are marked as writable, - and SHF_EXECINSTR sections are marked as executable. Where relevant for the plaform,