Skip to content

Commit

Permalink
libselinux/man: sync const qualifiers
Browse files Browse the repository at this point in the history
Sync the const qualifiers of parameters with the actual implementation.

Signed-off-by: Christian Göttsche <[email protected]>
Acked-by: James Carter <[email protected]>
  • Loading branch information
cgzones authored and jwcart2 committed May 1, 2024
1 parent 9f06e04 commit 06b326d
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion libselinux/man/man3/avc_context_to_sid.3
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions libselinux/man/man3/getfscreatecon.3
Expand Up @@ -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 ()
Expand Down
4 changes: 2 additions & 2 deletions libselinux/man/man3/getkeycreatecon.3
Expand Up @@ -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 ()
Expand Down
4 changes: 2 additions & 2 deletions libselinux/man/man3/getsockcreatecon.3
Expand Up @@ -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 ()
Expand Down
2 changes: 1 addition & 1 deletion libselinux/man/man3/init_selinuxmnt.3
Expand Up @@ -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 ()
Expand Down
2 changes: 1 addition & 1 deletion libselinux/man/man3/is_context_customizable.3
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libselinux/man/man3/selinux_raw_context_to_color.3
Expand Up @@ -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
Expand Down

0 comments on commit 06b326d

Please sign in to comment.