From d3456221a6d5ddc72e330b5a10e6b2304d575fa7 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Tue, 29 Nov 2022 10:49:07 +0100 Subject: [PATCH] selinux: Reflect context_str() type change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As of [1]. libselinux changed the type of context_str() - it now returns a const string. Follow this change in our code base. 1: https://github.com/SELinuxProject/selinux/commit/dd98fa322766760c4e1f029cf19d2515a583304f Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko --- src/security/security_selinux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c index 1f72f61cac..92e85c92e0 100644 --- a/src/security/security_selinux.c +++ b/src/security/security_selinux.c @@ -526,7 +526,7 @@ static char * virSecuritySELinuxContextAddRange(char *src, char *dst) { - char *str = NULL; + const char *str = NULL; char *ret = NULL; context_t srccon = NULL; context_t dstcon = NULL; @@ -567,7 +567,7 @@ virSecuritySELinuxGenNewContext(const char *basecontext, { context_t context = NULL; char *ret = NULL; - char *str; + const char *str; char *ourSecContext = NULL; context_t ourContext = NULL;