Le 18/02/2022 à 22:25, Aaron Tomlin a écrit : > No functional change. > > This patch migrates code that makes module text > and rodata memory read-only and non-text memory > non-executable from core module code into > kernel/module/strict_rwx.c. > > Signed-off-by: Aaron Tomlin <atomlin@xxxxxxxxxx> > --- > kernel/module/Makefile | 1 + > kernel/module/internal.h | 38 +++++++++++++++ > kernel/module/main.c | 99 +------------------------------------- > kernel/module/strict_rwx.c | 84 ++++++++++++++++++++++++++++++++ > 4 files changed, 125 insertions(+), 97 deletions(-) > create mode 100644 kernel/module/strict_rwx.c kernel/module/internal.h:182:12: error: 'module_enforce_rwx_sections' defined but not used [-Werror=unused-function] kernel/module/internal.h:181:13: error: 'module_enable_ro' defined but not used [-Werror=unused-function] kernel/module/internal.h:180:13: error: 'module_enable_nx' defined but not used [-Werror=unused-function] cc1: all warnings being treated as errors make[3]: *** [scripts/Makefile.build:288: kernel/module/signing.o] Error 1