ss: make SELinux stub functions conformant to API definitions

getfilecon() and security_get_initial_context() use the const qualifier
for their first paramater in SELinux APIs.

This commit adds the const qualifier to these functions, making them
conformant to API definitions.

Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
This commit is contained in:
Andrea Claudi 2023-08-23 19:30:00 +02:00 committed by David Ahern
parent c8970828b6
commit 61c6882ce2

View File

@ -86,13 +86,13 @@ static int getpidcon(pid_t pid, char **context)
return -1;
}
static int getfilecon(char *path, char **context)
static int getfilecon(const char *path, char **context)
{
*context = NULL;
return -1;
}
static int security_get_initial_context(char *name, char **context)
static int security_get_initial_context(const char *name, char **context)
{
*context = NULL;
return -1;