diff options
author | Jessica Yu | 2016-07-27 12:06:21 +0930 |
---|---|---|
committer | Rusty Russell | 2016-08-04 10:16:55 +0930 |
commit | 444d13ff10fb13bc3e64859c3cf9ce43dcfeb075 (patch) | |
tree | ab35e195fe3daeae0bd87f6f5bd7cc1cf07fd86a /kernel/livepatch | |
parent | bdc9f373551dd3f1e6fae1618f2394ee9bc7db2e (diff) |
modules: add ro_after_init support
Add ro_after_init support for modules by adding a new page-aligned section
in the module layout (after rodata) for ro_after_init data and enabling RO
protection for that section after module init runs.
Signed-off-by: Jessica Yu <jeyu@redhat.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'kernel/livepatch')
-rw-r--r-- | kernel/livepatch/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c index 5c2bc1052691..8bbe50704621 100644 --- a/kernel/livepatch/core.c +++ b/kernel/livepatch/core.c @@ -309,7 +309,7 @@ static int klp_write_object_relocations(struct module *pmod, break; } - module_enable_ro(pmod); + module_enable_ro(pmod, true); return ret; } |