From b94517376e6bd1e02e09cf5b4cf38d1c52fdb6be Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 22 Nov 2021 10:37:49 +0000 Subject: [PATCH] src/rc/rc-selinux.c: fix use of deprecated security_context_t It's only a char* and has been deprecated upstream [0]. [0] https://github.com/SELinuxProject/selinux/commit/7a124ca27581 Fixes: #478 --- src/rc/rc-selinux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rc/rc-selinux.c b/src/rc/rc-selinux.c index 2c9673cc..95947fd8 100644 --- a/src/rc/rc-selinux.c +++ b/src/rc/rc-selinux.c @@ -66,7 +66,7 @@ int selinux_util_label(const char *path) int retval = 0; int enforce; struct stat st; - security_context_t con; + char *con; enforce = security_getenforce(); if (retval < 0)