mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
selinux: Reflect context_str() type change
As of [1]. libselinux changed the type of context_str() - it now
returns a const string. Follow this change in our code base.
1: dd98fa3227
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
bc9d0df4f9
commit
d3456221a6
@ -526,7 +526,7 @@ static char *
|
|||||||
virSecuritySELinuxContextAddRange(char *src,
|
virSecuritySELinuxContextAddRange(char *src,
|
||||||
char *dst)
|
char *dst)
|
||||||
{
|
{
|
||||||
char *str = NULL;
|
const char *str = NULL;
|
||||||
char *ret = NULL;
|
char *ret = NULL;
|
||||||
context_t srccon = NULL;
|
context_t srccon = NULL;
|
||||||
context_t dstcon = NULL;
|
context_t dstcon = NULL;
|
||||||
@ -567,7 +567,7 @@ virSecuritySELinuxGenNewContext(const char *basecontext,
|
|||||||
{
|
{
|
||||||
context_t context = NULL;
|
context_t context = NULL;
|
||||||
char *ret = NULL;
|
char *ret = NULL;
|
||||||
char *str;
|
const char *str;
|
||||||
char *ourSecContext = NULL;
|
char *ourSecContext = NULL;
|
||||||
context_t ourContext = NULL;
|
context_t ourContext = NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user