semodule: maintain old functionality
Patch for semodule command semodule -B Will now turn on dontaudit rules semodule -DB Will turn off dontaudit rules. With other patch all other semanage commands will maintain state. Created by Dan Walsh Signed-off-by: Christopher Pardy <cpardy@redhat.com> Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
This commit is contained in:
parent
200efad4cb
commit
2c91f6377d
|
@ -421,6 +421,9 @@ int main(int argc, char *argv[])
|
||||||
semanage_set_rebuild(sh, 1);
|
semanage_set_rebuild(sh, 1);
|
||||||
if (disable_dontaudit)
|
if (disable_dontaudit)
|
||||||
semanage_set_disable_dontaudit(sh, 1);
|
semanage_set_disable_dontaudit(sh, 1);
|
||||||
|
else if (build)
|
||||||
|
semanage_set_disable_dontaudit(sh, 0);
|
||||||
|
|
||||||
result = semanage_commit(sh);
|
result = semanage_commit(sh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue