代码拉取完成,页面将自动刷新
From 22e2743d22ed6159feee1831046872641cd5ad0c Mon Sep 17 00:00:00 2001
From: changhan <changhan@xfusion.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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。