Skywind wrote:I known chpax could changs these on per file, but for some reasons I want to disable these on whole system temporary.
well, that's what softmode does for all apps that have the PT_PAX_FLAGS program header or don't have any of these features explicitly enabled on them (which is the state that the PaX binutils patch creates by default). now doing this for the old EI_PAX marking is certainly feasible but as i'd like to get rid of EI_PAX, i'd rather not do this in my tree. in any case, feel free to hack yours, something like this:
- Code: Select all
--- fs/binfmt_elf.c 2005-01-07 16:05:07.000000000 +0100
+++ fs/binfmt_elf.c.hacked 2005-01-21 05:14:47.000000000 +0100
@@ -587,6 +587,11 @@
#endif
#ifdef CONFIG_PAX_EI_PAX
+
+#ifdef CONFIG_PAX_SOFTMODE
+ if (!pax_softmode)
+#endif
+
pax_flags = pax_parse_ei_pax(elf_ex);
#endif