diff mbox series

[43/47] libsemanage: optimize policy by default

Message ID 20241111141706.38039-43-cgoettsche@seltendoof.de (mailing list archive)
State New
Delegated to: Petr Lautrbach
Headers show
Series [01/47] libsemanage: white space cleanup | expand

Commit Message

Christian Göttsche Nov. 11, 2024, 2:17 p.m. UTC
From: Christian Göttsche <cgzones@googlemail.com>

Fedora is setting optimize-policy to 1 by default, and there seem to be
no bugs related to policy optimizations so far.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
---
 libsemanage/man/man5/semanage.conf.5 | 2 +-
 libsemanage/src/conf-parse.y         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libsemanage/man/man5/semanage.conf.5 b/libsemanage/man/man5/semanage.conf.5
index e6e8e27a..7ac45c96 100644
--- a/libsemanage/man/man5/semanage.conf.5
+++ b/libsemanage/man/man5/semanage.conf.5
@@ -124,7 +124,7 @@  In order to compile the original HLL file into CIL, the same HLL file will need
 .TP
 .B optimize-policy
 When set to "true", the kernel policy will be optimized upon rebuilds.
-It can be set to either "true" or "false" and by default it is set to "false".
+It can be set to either "true" or "false" and by default it is set to "true".
 
 .SH "SEE ALSO"
 .TP
diff --git a/libsemanage/src/conf-parse.y b/libsemanage/src/conf-parse.y
index 83aa3402..43179b9d 100644
--- a/libsemanage/src/conf-parse.y
+++ b/libsemanage/src/conf-parse.y
@@ -384,7 +384,7 @@  static int semanage_conf_init(semanage_conf_t * conf)
 	conf->bzip_small = 0;
 	conf->ignore_module_cache = 0;
 	conf->remove_hll = 0;
-	conf->optimize_policy = 0;
+	conf->optimize_policy = 1;
 
 	conf->save_previous = 0;
 	conf->save_linked = 0;