libsemanage: optionally optimize policy on rebuild

When building binary policy, optionally run it through
sepol_policydb_optimize() just before writing it out.

Add an optimize-policy variable to semanage.conf(5) that controls
whether optimization will be applied during libsemanage operations.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
This commit is contained in:
Ondrej Mosnacek 2019-06-13 13:45:56 +02:00 committed by James Carter
parent b8213acff8
commit 3cba4306b9
5 changed files with 28 additions and 1 deletions