Signed-off-by: changhan <changhan@xfusion.com> (cherry picked from commit 6c2d136f1fada3dd3d9c98a6979d97f2d35cdb94)
42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
From 22e2743d22ed6159feee1831046872641cd5ad0c Mon Sep 17 00:00:00 2001
|
|
From: Christian Göttsche <cgzones@googlemail.com>
|
|
Date: Fri, 18 Apr 2025 17:18:02 +0800
|
|
Subject: [PATCH] libsemanage-optimize-policy-by-default
|
|
|
|
Reference:https://github.com/SELinuxProject/selinux/commit/66da657a094a725d5f9d8e2441410afaa44bb7f3
|
|
|
|
---
|
|
man/man5/semanage.conf.5 | 2 +-
|
|
src/conf-parse.y | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/man/man5/semanage.conf.5 b/man/man5/semanage.conf.5
|
|
index 380b58b..b043fe5 100644
|
|
--- a/man/man5/semanage.conf.5
|
|
+++ b/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/src/conf-parse.y b/src/conf-parse.y
|
|
index 343fbf8..12f94b7 100644
|
|
--- a/src/conf-parse.y
|
|
+++ b/src/conf-parse.y
|
|
@@ -364,7 +364,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;
|
|
--
|
|
2.33.0
|
|
|