Message ID | 139f6e818c49b9a2dfd6eb1074afebd8dac5ccec.1692804730.git.aclaudi@redhat.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 61c6882ce21c1247c06cd61783120be0a2e2019c |
Delegated to: | David Ahern |
Headers | show |
Series | make ip vrf exec SELinux-aware | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch, async |
diff --git a/misc/ss.c b/misc/ss.c index 007cb349..b3183630 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;
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> --- misc/ss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)