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:
Christopher Pardy 2009-07-06 14:01:01 -04:00 committed by Stephen Smalley
parent 200efad4cb
commit 2c91f6377d
1 changed files with 3 additions and 0 deletions

View File

@ -421,6 +421,9 @@ int main(int argc, char *argv[])
semanage_set_rebuild(sh, 1);
if (disable_dontaudit)
semanage_set_disable_dontaudit(sh, 1);
else if (build)
semanage_set_disable_dontaudit(sh, 0);
result = semanage_commit(sh);
}