1 Star 0 Fork 44

YukariChiba/lxc

forked from src-openEuler/lxc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0011-drop-security_context_t.patch 714 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhangxiaoyu 提交于 2022-07-26 14:32 . drop security_context_t
From bcc3084c9230486c3a7d40cff633d581f6a1a990 Mon Sep 17 00:00:00 2001
From: zhangxiaoyu <[email protected]>
Date: Tue, 26 Jul 2022 14:27:11 +0800
Subject: [PATCH] drop security_context_t
Signed-off-by: zhangxiaoyu <[email protected]>
---
src/lxc/lsm/selinux.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/lxc/lsm/selinux.c b/src/lxc/lsm/selinux.c
index bd4f449..c24d238 100644
--- a/src/lxc/lsm/selinux.c
+++ b/src/lxc/lsm/selinux.c
@@ -36,7 +36,11 @@ lxc_log_define(selinux, lsm);
*/
static char *selinux_process_label_get(pid_t pid)
{
+#ifdef HAVE_ISULAD
+ char *ctx;
+#else
security_context_t ctx;
+#endif
char *label;
if (getpidcon_raw(pid, &ctx) < 0) {
--
2.25.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/YukariChiba/lxc.git
[email protected]:YukariChiba/lxc.git
YukariChiba
lxc
lxc
master

搜索帮助