mirror of
https://github.com/dynup/kpatch
synced 2025-04-11 03:31:20 +00:00
fail on changed init section
fixes issue #103 Signed-off-by: Seth Jennings <sjenning@redhat.com>
This commit is contained in:
parent
6626db1ad8
commit
7b15e23149
@ -505,8 +505,11 @@ void kpatch_compare_correlated_section(struct section *sec)
|
||||
else
|
||||
kpatch_compare_correlated_nonrela_section(sec);
|
||||
out:
|
||||
if (sec->status == CHANGED)
|
||||
if (sec->status == CHANGED) {
|
||||
log_debug("section %s has changed\n", sec->name);
|
||||
if (!strcmp(sec->name, ".init.text"))
|
||||
DIFF_FATAL("init section has changed");
|
||||
}
|
||||
}
|
||||
|
||||
void kpatch_compare_sections(struct table *table)
|
||||
|
Loading…
Reference in New Issue
Block a user