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);
322
322
int module_enable_rodata_ro_after_init (const struct module * mod );
323
323
int module_enable_data_nx (const struct module * mod );
324
324
int 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 );
327
328
328
329
#ifdef CONFIG_MODULE_SIG
329
330
int 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)
87
87
return 0 ;
88
88
}
89
89
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 )
92
93
{
93
94
const unsigned long shf_wx = SHF_WRITE | SHF_EXECINSTR ;
94
95
int i ;
You can’t perform that action at this time.
0 commit comments