From 61c6882ce21c1247c06cd61783120be0a2e2019c Mon Sep 17 00:00:00 2001 From: Andrea Claudi Date: Wed, 23 Aug 2023 19:30:00 +0200 Subject: [PATCH] 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 Signed-off-by: David Ahern --- misc/ss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/ss.c b/misc/ss.c index 007cb3490..b3183630f 100644 --- a/misc/ss.c +++ b/misc/ss.c @@ -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; -- 2.47.3