diff options
author | Pádraig Brady <P@draigBrady.com> | 2020-11-23 15:14:50 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2020-11-23 15:18:26 +0000 |
commit | cb432e7d6144c99da594f1fbce8ec8fd939745a0 (patch) | |
tree | 07a630ab85422d85477bbcafe68a032a5df5072f /lib/se-selinux.in.h | |
parent | 5aca1898c9f62370142920be91992d4efe72bb7b (diff) | |
download | gnulib-cb432e7d6144c99da594f1fbce8ec8fd939745a0.tar.gz |
selinux-at, selinux-h: use const correct declarations
* lib/se-selinux.in.h: Use const for "set" functions,
to match current selinux, and support cleaner user code.
* lib/selinux-at.c: Likewise.
* lib/selinux-at.h: Likewise.
Diffstat (limited to 'lib/se-selinux.in.h')
-rw-r--r-- | lib/se-selinux.in.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/se-selinux.in.h b/lib/se-selinux.in.h index a6c194aa0e..67d034d0f8 100644 --- a/lib/se-selinux.in.h +++ b/lib/se-selinux.in.h @@ -56,7 +56,7 @@ SE_SELINUX_INLINE int getfscreatecon (char **con _GL_UNUSED_PARAMETER) { errno = ENOTSUP; return -1; } SE_SELINUX_INLINE int -setfscreatecon (char *con _GL_UNUSED_PARAMETER) +setfscreatecon (char const *con _GL_UNUSED_PARAMETER) { errno = ENOTSUP; return -1; } SE_SELINUX_INLINE int matchpathcon (char const *file _GL_UNUSED_PARAMETER, @@ -76,29 +76,29 @@ fgetfilecon (int fd, char **con _GL_UNUSED_PARAMETER) { errno = ENOTSUP; return -1; } SE_SELINUX_INLINE int setfilecon (char const *file _GL_UNUSED_PARAMETER, - char *con _GL_UNUSED_PARAMETER) + char const *con _GL_UNUSED_PARAMETER) { errno = ENOTSUP; return -1; } SE_SELINUX_INLINE int lsetfilecon (char const *file _GL_UNUSED_PARAMETER, - char *con _GL_UNUSED_PARAMETER) + char const *con _GL_UNUSED_PARAMETER) { errno = ENOTSUP; return -1; } SE_SELINUX_INLINE int fsetfilecon (int fd _GL_UNUSED_PARAMETER, - char *con _GL_UNUSED_PARAMETER) + char const *con _GL_UNUSED_PARAMETER) { errno = ENOTSUP; return -1; } SE_SELINUX_INLINE int -security_check_context (char *con _GL_UNUSED_PARAMETER) +security_check_context (char const *con _GL_UNUSED_PARAMETER) { errno = ENOTSUP; return -1; } SE_SELINUX_INLINE int -security_check_context_raw (char *con _GL_UNUSED_PARAMETER) +security_check_context_raw (char const *con _GL_UNUSED_PARAMETER) { errno = ENOTSUP; return -1; } SE_SELINUX_INLINE int -setexeccon (char *con _GL_UNUSED_PARAMETER) +setexeccon (char const *con _GL_UNUSED_PARAMETER) { errno = ENOTSUP; return -1; } SE_SELINUX_INLINE int -security_compute_create (char *scon _GL_UNUSED_PARAMETER, - char *tcon _GL_UNUSED_PARAMETER, +security_compute_create (char const *scon _GL_UNUSED_PARAMETER, + char const *tcon _GL_UNUSED_PARAMETER, security_class_t tclass _GL_UNUSED_PARAMETER, char **newcon _GL_UNUSED_PARAMETER) { errno = ENOTSUP; return -1; } |