|
|
acda74 |
From d1aa4fb37896b2abb92b4d0e0409459820e726a4 Mon Sep 17 00:00:00 2001
|
|
|
acda74 |
Message-Id: <d1aa4fb37896b2abb92b4d0e0409459820e726a4@dist-git>
|
|
|
acda74 |
From: Laine Stump <laine@redhat.com>
|
|
|
acda74 |
Date: Wed, 8 Mar 2023 12:50:38 -0500
|
|
|
acda74 |
Subject: [PATCH] security: make args to virSecuritySELinuxContextAddRange()
|
|
|
acda74 |
const
|
|
|
acda74 |
|
|
|
acda74 |
Neither of these are modified anywhere in the function, and the
|
|
|
acda74 |
function will soon be called with an arg that actually is a const.
|
|
|
acda74 |
|
|
|
acda74 |
Signed-off-by: Laine Stump <laine@redhat.com>
|
|
|
acda74 |
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
|
|
|
acda74 |
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
acda74 |
(cherry picked from commit 60afe39576abc9b26f5f8c1dfed39bbc783fb78c)
|
|
|
acda74 |
|
|
|
acda74 |
https://bugzilla.redhat.com/2172267
|
|
|
acda74 |
Signed-off-by: Laine Stump <laine@redhat.com>
|
|
|
acda74 |
---
|
|
|
acda74 |
src/security/security_selinux.c | 4 ++--
|
|
|
acda74 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
acda74 |
|
|
|
acda74 |
diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c
|
|
|
acda74 |
index 4d4a1705e6..a0b3a5e147 100644
|
|
|
acda74 |
--- a/src/security/security_selinux.c
|
|
|
acda74 |
+++ b/src/security/security_selinux.c
|
|
|
acda74 |
@@ -523,8 +523,8 @@ virSecuritySELinuxMCSGetProcessRange(char **sens,
|
|
|
acda74 |
}
|
|
|
acda74 |
|
|
|
acda74 |
static char *
|
|
|
acda74 |
-virSecuritySELinuxContextAddRange(char *src,
|
|
|
acda74 |
- char *dst)
|
|
|
acda74 |
+virSecuritySELinuxContextAddRange(const char *src,
|
|
|
acda74 |
+ const char *dst)
|
|
|
acda74 |
{
|
|
|
acda74 |
const char *str = NULL;
|
|
|
acda74 |
char *ret = NULL;
|
|
|
acda74 |
--
|
|
|
acda74 |
2.40.0
|
|
|
acda74 |
|