1 Star 0 Fork 71

li-shangli/coreutils

forked from src-openEuler/coreutils 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
skip-the-tests-that-require-selinux-if-selinux-is-di.patch 984 Bytes
一键复制 编辑 原始数据 按行查看 历史
panchenbo 提交于 2020-08-26 16:37 . fix patch error
From 797f2ff278fd7f0f0448b94350baa05f6752936b Mon Sep 17 00:00:00 2001
From: openEuler Buildteam <buildteam@openeuler.org>
Date: Thu, 30 Apr 2020 09:44:03 +0800
Subject: [PATCH] skip the tests that require selinux if selinux is disabled
no-context.sh context.sh install-C-selinux.sh
These three tests requires selinux, and we need to judge if selinux
is enabled, if not, just skip these tests.
---
init.cfg | 3 +++
1 file changed, 3 insertions(+)
diff --git a/init.cfg b/init.cfg
index 739ba33..d536dec 100644
--- a/init.cfg
+++ b/init.cfg
@@ -114,6 +114,9 @@ require_selinux_()
grep 'selinuxfs$' /proc/filesystems > /dev/null \
|| skip_ "this system lacks SELinux support"
+ # Judge the selinux is enabled or not
+ selinuxenabled; [ $? = 1 ] && skip_ "SELinux is disabled"
+
# Independent of whether SELinux is enabled system-wide,
# the current file system may lack SELinux support.
# Also the current build may have SELinux support disabled.
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/li-shangli/coreutils.git
git@gitee.com:li-shangli/coreutils.git
li-shangli
coreutils
coreutils
master

搜索帮助