]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
security: make args to virSecuritySELinuxContextAddRange() const
authorLaine Stump <laine@redhat.com>
Wed, 8 Mar 2023 17:50:38 +0000 (12:50 -0500)
committerLaine Stump <laine@redhat.com>
Fri, 10 Mar 2023 19:09:23 +0000 (14:09 -0500)
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 <laine@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/security/security_selinux.c

index e43962435f23a05864b9d1766b660f4e87028b30..cd1d9d14f715fe57c26e32a6a695c253050d78bd 100644 (file)
@@ -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;