From: Christian Göttsche <cgzones@xxxxxxxxxxxxxx> Sync the const qualifiers of parameters with the actual implementation. Signed-off-by: Christian Göttsche <cgzones@xxxxxxxxxxxxxx> --- libselinux/man/man3/avc_context_to_sid.3 | 2 +- libselinux/man/man3/getfscreatecon.3 | 4 ++-- libselinux/man/man3/getkeycreatecon.3 | 4 ++-- libselinux/man/man3/getsockcreatecon.3 | 4 ++-- libselinux/man/man3/init_selinuxmnt.3 | 2 +- libselinux/man/man3/is_context_customizable.3 | 2 +- libselinux/man/man3/selinux_raw_context_to_color.3 | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libselinux/man/man3/avc_context_to_sid.3 b/libselinux/man/man3/avc_context_to_sid.3 index 5532d6c5..4586b999 100644 --- a/libselinux/man/man3/avc_context_to_sid.3 +++ b/libselinux/man/man3/avc_context_to_sid.3 @@ -10,7 +10,7 @@ avc_context_to_sid, avc_sid_to_context, avc_get_initial_sid \- obtain and manipu .br .B #include <selinux/avc.h> .sp -.BI "int avc_context_to_sid(char *" ctx ", security_id_t *" sid ");" +.BI "int avc_context_to_sid(const char *" ctx ", security_id_t *" sid ");" .sp .BI "int avc_sid_to_context(security_id_t " sid ", char **" ctx ");" .sp diff --git a/libselinux/man/man3/getfscreatecon.3 b/libselinux/man/man3/getfscreatecon.3 index c6faadc1..47ec30f4 100644 --- a/libselinux/man/man3/getfscreatecon.3 +++ b/libselinux/man/man3/getfscreatecon.3 @@ -9,9 +9,9 @@ getfscreatecon, setfscreatecon \- get or set the SELinux security context used f .sp .BI "int getfscreatecon_raw(char **" con ); .sp -.BI "int setfscreatecon(char *" context ); +.BI "int setfscreatecon(const char *" context ); .sp -.BI "int setfscreatecon_raw(char *" context ); +.BI "int setfscreatecon_raw(const char *" context ); . .SH "DESCRIPTION" .BR getfscreatecon () diff --git a/libselinux/man/man3/getkeycreatecon.3 b/libselinux/man/man3/getkeycreatecon.3 index 7887b9b8..0ef27be7 100644 --- a/libselinux/man/man3/getkeycreatecon.3 +++ b/libselinux/man/man3/getkeycreatecon.3 @@ -9,9 +9,9 @@ getkeycreatecon, setkeycreatecon \- get or set the SELinux security context used .sp .BI "int getkeycreatecon_raw(char **" con ); .sp -.BI "int setkeycreatecon(char *" context ); +.BI "int setkeycreatecon(const char *" context ); .sp -.BI "int setkeycreatecon_raw(char *" context ); +.BI "int setkeycreatecon_raw(const char *" context ); . .SH "DESCRIPTION" .BR getkeycreatecon () diff --git a/libselinux/man/man3/getsockcreatecon.3 b/libselinux/man/man3/getsockcreatecon.3 index 9223f60f..9795fb65 100644 --- a/libselinux/man/man3/getsockcreatecon.3 +++ b/libselinux/man/man3/getsockcreatecon.3 @@ -9,9 +9,9 @@ getsockcreatecon, setsockcreatecon \- get or set the SELinux security context us .sp .BI "int getsockcreatecon_raw(char **" con ); .sp -.BI "int setsockcreatecon(char *" context ); +.BI "int setsockcreatecon(const char *" context ); .sp -.BI "int setsockcreatecon_raw(char *" context ); +.BI "int setsockcreatecon_raw(const char *" context ); . .SH "DESCRIPTION" .BR getsockcreatecon () diff --git a/libselinux/man/man3/init_selinuxmnt.3 b/libselinux/man/man3/init_selinuxmnt.3 index 8466f9ff..6c83698a 100644 --- a/libselinux/man/man3/init_selinuxmnt.3 +++ b/libselinux/man/man3/init_selinuxmnt.3 @@ -7,7 +7,7 @@ init_selinuxmnt \- initialize the global variable selinux_mnt .sp .BI "static void fini_selinuxmnt(void);" .sp -.BI "void set_selinuxmnt(char *" mnt ");" +.BI "void set_selinuxmnt(const char *" mnt ");" . .SH "DESCRIPTION" .BR init_selinuxmnt () diff --git a/libselinux/man/man3/is_context_customizable.3 b/libselinux/man/man3/is_context_customizable.3 index c858a026..ca332dc4 100644 --- a/libselinux/man/man3/is_context_customizable.3 +++ b/libselinux/man/man3/is_context_customizable.3 @@ -5,7 +5,7 @@ is_context_customizable \- check whether SELinux context type is customizable by .SH "SYNOPSIS" .B #include <selinux/selinux.h> .sp -.BI "int is_context_customizable(char *" scon ); +.BI "int is_context_customizable(const char *" scon ); . .SH "DESCRIPTION" This function checks whether the type of scon is in the diff --git a/libselinux/man/man3/selinux_raw_context_to_color.3 b/libselinux/man/man3/selinux_raw_context_to_color.3 index cfd564df..fb657f81 100644 --- a/libselinux/man/man3/selinux_raw_context_to_color.3 +++ b/libselinux/man/man3/selinux_raw_context_to_color.3 @@ -5,7 +5,7 @@ selinux_raw_context_to_color \- Return RGB color string for an SELinux security .SH "SYNOPSIS" .B #include <selinux/selinux.h> .sp -.BI "int selinux_raw_context_to_color(char *" raw ", " +.BI "int selinux_raw_context_to_color(const char *" raw ", " .RS .BI "char **" color_str ");" .RE -- 2.43.0