diff options
author | Josh Poimboeuf | 2015-11-26 09:42:08 +1030 |
---|---|---|
committer | Jiri Kosina | 2015-12-04 22:46:24 +0100 |
commit | 20ef10c1b3068f105004e247d8e7dd8120fa4b9a (patch) | |
tree | 08c6a0745a46101837dcd34425e9c5716a294b11 /REPORTING-BUGS | |
parent | 78c4a49a69e910a162b05e4e8727b9bdbf948f13 (diff) |
module: Use the same logic for setting and unsetting RO/NX
When setting a module's RO and NX permissions, set_section_ro_nx() is
used, but when clearing them, unset_module_{init,core}_ro_nx() are used.
The unset functions don't have the same checks the set function has for
partial page protections. It's probably harmless, but it's still
confusingly asymmetrical.
Instead, use the same logic to do both. Also add some new
set_module_{init,core}_ro_nx() helper functions for more symmetry with
the unset functions.
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions