2020-09-25 16:25:49 +08:00
|
|
|
From 5a8c9b52ad3291feb87c2281e074b2c85c766245 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: wujing <wujing50@huawei.com>
|
|
|
|
|
Date: Fri, 25 Sep 2020 10:21:37 +0800
|
2020-11-03 10:00:10 +08:00
|
|
|
Subject: [PATCH 7/9] Using string type instead of security_context_t because
|
|
|
|
|
it is deprecated
|
2020-09-25 16:25:49 +08:00
|
|
|
|
|
|
|
|
Signed-off-by: wujing <wujing50@huawei.com>
|
|
|
|
|
---
|
|
|
|
|
src/lxc/lsm/selinux.c | 2 +-
|
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
|
|
diff --git a/src/lxc/lsm/selinux.c b/src/lxc/lsm/selinux.c
|
2020-11-03 10:00:10 +08:00
|
|
|
index 837a3da3d..79697c583 100644
|
2020-09-25 16:25:49 +08:00
|
|
|
--- a/src/lxc/lsm/selinux.c
|
|
|
|
|
+++ b/src/lxc/lsm/selinux.c
|
|
|
|
|
@@ -36,7 +36,7 @@ lxc_log_define(selinux, lsm);
|
|
|
|
|
*/
|
|
|
|
|
static char *selinux_process_label_get(pid_t pid)
|
|
|
|
|
{
|
|
|
|
|
- security_context_t ctx;
|
|
|
|
|
+ char *ctx;
|
|
|
|
|
char *label;
|
|
|
|
|
|
|
|
|
|
if (getpidcon_raw(pid, &ctx) < 0) {
|
|
|
|
|
--
|
|
|
|
|
2.25.1
|
|
|
|
|
|