File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -322,8 +322,9 @@ int module_enable_rodata_ro(const struct module *mod);
322322int module_enable_rodata_ro_after_init (const struct module * mod );
323323int module_enable_data_nx (const struct module * mod );
324324int module_enable_text_rox (const struct module * mod );
325- int module_enforce_rwx_sections (Elf_Ehdr * hdr , Elf_Shdr * sechdrs ,
326- char * secstrings , struct module * mod );
325+ int module_enforce_rwx_sections (const Elf_Ehdr * hdr , const Elf_Shdr * sechdrs ,
326+ const char * secstrings ,
327+ const struct module * mod );
327328
328329#ifdef CONFIG_MODULE_SIG
329330int module_sig_check (struct load_info * info , int flags );
Original file line number Diff line number Diff line change @@ -87,8 +87,9 @@ int module_enable_data_nx(const struct module *mod)
8787 return 0 ;
8888}
8989
90- int module_enforce_rwx_sections (Elf_Ehdr * hdr , Elf_Shdr * sechdrs ,
91- char * secstrings , struct module * mod )
90+ int module_enforce_rwx_sections (const Elf_Ehdr * hdr , const Elf_Shdr * sechdrs ,
91+ const char * secstrings ,
92+ const struct module * mod )
9293{
9394 const unsigned long shf_wx = SHF_WRITE | SHF_EXECINSTR ;
9495 int i ;
You can’t perform that action at this time.
0 commit comments