From: Laine Stump Date: Wed, 8 Mar 2023 17:50:38 +0000 (-0500) Subject: security: make args to virSecuritySELinuxContextAddRange() const X-Git-Tag: v9.2.0-rc1~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60afe39576abc9b26f5f8c1dfed39bbc783fb78c;p=thirdparty%2Flibvirt.git security: make args to virSecuritySELinuxContextAddRange() const Neither of these are modified anywhere in the function, and the function will soon be called with an arg that actually is a const. Signed-off-by: Laine Stump Reviewed-by: Andrea Bolognani Reviewed-by: Michal Privoznik --- diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c index e43962435f..cd1d9d14f7 100644 --- a/src/security/security_selinux.c +++ b/src/security/security_selinux.c @@ -523,8 +523,8 @@ virSecuritySELinuxMCSGetProcessRange(char **sens, } static char * -virSecuritySELinuxContextAddRange(char *src, - char *dst) +virSecuritySELinuxContextAddRange(const char *src, + const char *dst) { const char *str = NULL; char *ret = NULL;