mirror of
https://github.com/topjohnwu/selinux.git
synced 2025-02-16 01:08:27 +00:00
man: standardize spacing with pointers in prototypes
The majority of prototypes don't put a space between the "*" and the parameter name. i.e. this style is incorrect: char * foo; Instead, we want: char *foo; Fix a bunch of references that use this uncommon style. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
fc3d8ceafc
commit
7179fd8738
@ -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(char *" ctx ", security_id_t *" sid ");"
|
||||
.sp
|
||||
.BI "int avc_sid_to_context(security_id_t " sid ", char **" ctx ");"
|
||||
.sp
|
||||
|
@ -7,17 +7,17 @@ get_ordered_context_list, get_ordered_context_list_with_level, get_default_conte
|
||||
.br
|
||||
.B #include <selinux/get_context_list.h>
|
||||
.sp
|
||||
.BI "int get_ordered_context_list(const char *" user ", char * "fromcon ", char ***" list );
|
||||
.BI "int get_ordered_context_list(const char *" user ", char *" fromcon ", char ***" list );
|
||||
.sp
|
||||
.BI "int get_ordered_context_list_with_level(const char *" user ", const char *" level ", char * "fromcon ", char ***" list );
|
||||
.BI "int get_ordered_context_list_with_level(const char *" user ", const char *" level ", char *" fromcon ", char ***" list );
|
||||
.sp
|
||||
.BI "int get_default_context(const char *" user ", char * "fromcon ", char **" newcon );
|
||||
.BI "int get_default_context(const char *" user ", char *" fromcon ", char **" newcon );
|
||||
.sp
|
||||
.BI "int get_default_context_with_level(const char *" user ", const char *" level ", char * "fromcon ", char **" newcon );
|
||||
.BI "int get_default_context_with_level(const char *" user ", const char *" level ", char *" fromcon ", char **" newcon );
|
||||
.sp
|
||||
.BI "int get_default_context_with_role(const char *" user ", const char *" role ", char * " fromcon ", char **" newcon ");
|
||||
.BI "int get_default_context_with_role(const char *" user ", const char *" role ", char *" fromcon ", char **" newcon ");
|
||||
.sp
|
||||
.BI "int get_default_context_with_rolelevel(const char *" user ", const char *" level ", const char *" role ", char * " fromcon ", char **" newcon ");
|
||||
.BI "int get_default_context_with_rolelevel(const char *" user ", const char *" level ", const char *" role ", char *" fromcon ", char **" newcon ");
|
||||
.sp
|
||||
.BI "int query_user_context(char **" list ", char **" newcon );
|
||||
.sp
|
||||
|
@ -27,13 +27,13 @@ setcon \- set current security context of a process
|
||||
.sp
|
||||
.BI "int getpeercon_raw(int " fd ", char **" context );
|
||||
.sp
|
||||
.BI "void freecon(char * "con );
|
||||
.BI "void freecon(char *" con );
|
||||
.sp
|
||||
.BI "void freeconary(char **" con );
|
||||
.sp
|
||||
.BI "int setcon(char * " context );
|
||||
.BI "int setcon(char *" context );
|
||||
.sp
|
||||
.BI "int setcon_raw(char * " context );
|
||||
.BI "int setcon_raw(char *" context );
|
||||
.
|
||||
.SH "DESCRIPTION"
|
||||
.BR getcon ()
|
||||
|
@ -11,9 +11,9 @@ rpm_execcon \- run a helper for rpm in an appropriate security context
|
||||
.sp
|
||||
.BI "int getexeccon_raw(char **" context );
|
||||
.sp
|
||||
.BI "int setexeccon(char * "context );
|
||||
.BI "int setexeccon(char *" context );
|
||||
.sp
|
||||
.BI "int setexeccon_raw(char * "context );
|
||||
.BI "int setexeccon_raw(char *" context );
|
||||
.sp
|
||||
.BI "int setexecfilecon(const char *" filename ", const char *" fallback_type );
|
||||
.sp
|
||||
|
@ -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(char *" context );
|
||||
.sp
|
||||
.BI "int setfscreatecon_raw(char * "context );
|
||||
.BI "int setfscreatecon_raw(char *" context );
|
||||
.
|
||||
.SH "DESCRIPTION"
|
||||
.BR getfscreatecon ()
|
||||
|
@ -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(char *" context );
|
||||
.sp
|
||||
.BI "int setkeycreatecon_raw(char * "context );
|
||||
.BI "int setkeycreatecon_raw(char *" context );
|
||||
.
|
||||
.SH "DESCRIPTION"
|
||||
.BR getkeycreatecon ()
|
||||
|
@ -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(char *" context );
|
||||
.sp
|
||||
.BI "int setsockcreatecon_raw(char * "context );
|
||||
.BI "int setsockcreatecon_raw(char *" context );
|
||||
.
|
||||
.SH "DESCRIPTION"
|
||||
.BR getsockcreatecon ()
|
||||
|
@ -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(char *" scon );
|
||||
.
|
||||
.SH "DESCRIPTION"
|
||||
This function checks whether the type of scon is in the
|
||||
|
@ -5,9 +5,9 @@ security_check_context \- check the validity of a SELinux context
|
||||
.SH "SYNOPSIS"
|
||||
.B #include <selinux/selinux.h>
|
||||
.sp
|
||||
.BI "int security_check_context(char * "con );
|
||||
.BI "int security_check_context(char *" con );
|
||||
.sp
|
||||
.BI "int security_check_context_raw(char * "con );
|
||||
.BI "int security_check_context_raw(char *" con );
|
||||
.
|
||||
.SH "DESCRIPTION"
|
||||
.BR security_check_context ()
|
||||
|
@ -7,39 +7,39 @@ the SELinux policy database in the kernel
|
||||
.SH "SYNOPSIS"
|
||||
.B #include <selinux/selinux.h>
|
||||
.sp
|
||||
.BI "int security_compute_av(char * "scon ", char * "tcon ", security_class_t "tclass ", access_vector_t "requested ", struct av_decision *" avd );
|
||||
.BI "int security_compute_av(char *" scon ", char *" tcon ", security_class_t "tclass ", access_vector_t "requested ", struct av_decision *" avd );
|
||||
.sp
|
||||
.BI "int security_compute_av_raw(char * "scon ", char * "tcon ", security_class_t "tclass ", access_vector_t "requested ", struct av_decision *" avd );
|
||||
.BI "int security_compute_av_raw(char *" scon ", char *" tcon ", security_class_t "tclass ", access_vector_t "requested ", struct av_decision *" avd );
|
||||
.sp
|
||||
.BI "int security_compute_av_flags(char * "scon ", char * "tcon ", security_class_t "tclass ", access_vector_t "requested ", struct av_decision *" avd );
|
||||
.BI "int security_compute_av_flags(char *" scon ", char *" tcon ", security_class_t "tclass ", access_vector_t "requested ", struct av_decision *" avd );
|
||||
.sp
|
||||
.BI "int security_compute_av_flags_raw(char * "scon ", char * "tcon ", security_class_t "tclass ", access_vector_t "requested ", struct av_decision *" avd );
|
||||
.BI "int security_compute_av_flags_raw(char *" scon ", char *" tcon ", security_class_t "tclass ", access_vector_t "requested ", struct av_decision *" avd );
|
||||
.sp
|
||||
.BI "int security_compute_create(char * "scon ", char * "tcon ", security_class_t "tclass ", char **" newcon );
|
||||
.BI "int security_compute_create(char *" scon ", char *" tcon ", security_class_t "tclass ", char **" newcon );
|
||||
.sp
|
||||
.BI "int security_compute_create_raw(char * "scon ", char * "tcon ", security_class_t "tclass ", char **" newcon );
|
||||
.BI "int security_compute_create_raw(char *" scon ", char *" tcon ", security_class_t "tclass ", char **" newcon );
|
||||
.sp
|
||||
.BI "int security_compute_create_name(char * "scon ", char * "tcon ", security_class_t "tclass ", const char *"objname ", char **" newcon );
|
||||
.BI "int security_compute_create_name(char *" scon ", char *" tcon ", security_class_t "tclass ", const char *" objname ", char **" newcon );
|
||||
.sp
|
||||
.BI "int security_compute_create_name_raw(char * "scon ", char * "tcon ", security_class_t "tclass ", const char *"objname ", char **" newcon );
|
||||
.BI "int security_compute_create_name_raw(char *" scon ", char *" tcon ", security_class_t "tclass ", const char *" objname ", char **" newcon );
|
||||
.sp
|
||||
.BI "int security_compute_relabel(char * "scon ", char * "tcon ", security_class_t "tclass ", char **" newcon );
|
||||
.BI "int security_compute_relabel(char *" scon ", char *" tcon ", security_class_t "tclass ", char **" newcon );
|
||||
.sp
|
||||
.BI "int security_compute_relabel_raw(char * "scon ", char * "tcon ", security_class_t "tclass ", char **" newcon );
|
||||
.BI "int security_compute_relabel_raw(char *" scon ", char *" tcon ", security_class_t "tclass ", char **" newcon );
|
||||
.sp
|
||||
.BI "int security_compute_member(char * "scon ", char * "tcon ", security_class_t "tclass ", char **" newcon );
|
||||
.BI "int security_compute_member(char *" scon ", char *" tcon ", security_class_t "tclass ", char **" newcon );
|
||||
.sp
|
||||
.BI "int security_compute_member_raw(char * "scon ", char * "tcon ", security_class_t "tclass ", char **" newcon );
|
||||
.BI "int security_compute_member_raw(char *" scon ", char *" tcon ", security_class_t "tclass ", char **" newcon );
|
||||
.sp
|
||||
.BI "int security_compute_user(char * "scon ", const char *" username ", char ***" con );
|
||||
.BI "int security_compute_user(char *" scon ", const char *" username ", char ***" con );
|
||||
.sp
|
||||
.BI "int security_compute_user_raw(char * "scon ", const char *" username ", char ***" con );
|
||||
.BI "int security_compute_user_raw(char *" scon ", const char *" username ", char ***" con );
|
||||
.sp
|
||||
.BI "int security_get_initial_context(const char *" name ", char **" con );
|
||||
.sp
|
||||
.BI "int security_get_initial_context_raw(const char *" name ", char **" con );
|
||||
.sp
|
||||
.BI "int selinux_check_access(const char * " scon ", const char * " tcon ", const char *" class ", const char *" perm ", void *" auditdata);
|
||||
.BI "int selinux_check_access(const char *" scon ", const char *" tcon ", const char *" class ", const char *" perm ", void *" auditdata);
|
||||
.sp
|
||||
.BI "int selinux_check_passwd_access(access_vector_t " requested );
|
||||
.sp
|
||||
|
@ -5,7 +5,7 @@ selinux_check_securetty_context \- check whether a SELinux tty security context
|
||||
.SH "SYNOPSIS"
|
||||
.B #include <selinux/selinux.h>
|
||||
.sp
|
||||
.BI "int selinux_check_securetty_context(char * "tty_context );
|
||||
.BI "int selinux_check_securetty_context(char *" tty_context );
|
||||
.
|
||||
.SH "DESCRIPTION"
|
||||
.BR selinux_check_securetty_context ()
|
||||
|
@ -5,9 +5,9 @@ selinux_file_context_cmp \- Compare two SELinux security contexts excluding the
|
||||
.SH "SYNOPSIS"
|
||||
.B #include <selinux/selinux.h>
|
||||
.sp
|
||||
.BI "int selinux_file_context_cmp(const char * " a ", "
|
||||
.BI "int selinux_file_context_cmp(const char *" a ", "
|
||||
.RS
|
||||
.BI "const char * " b ");"
|
||||
.BI "const char *" b ");"
|
||||
.RE
|
||||
.
|
||||
.SH "DESCRIPTION"
|
||||
|
@ -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(char *" raw ", "
|
||||
.RS
|
||||
.BI "char **" color_str ");"
|
||||
.RE
|
||||
|
@ -5,17 +5,17 @@ setfilecon, fsetfilecon, lsetfilecon \- set SELinux security context of a file
|
||||
.SH "SYNOPSIS"
|
||||
.B #include <selinux/selinux.h>
|
||||
.sp
|
||||
.BI "int setfilecon(const char *" path ", char * "con );
|
||||
.BI "int setfilecon(const char *" path ", char *" con );
|
||||
.sp
|
||||
.BI "int setfilecon_raw(const char *" path ", char * "con );
|
||||
.BI "int setfilecon_raw(const char *" path ", char *" con );
|
||||
.sp
|
||||
.BI "int lsetfilecon(const char *" path ", char * "con );
|
||||
.BI "int lsetfilecon(const char *" path ", char *" con );
|
||||
.sp
|
||||
.BI "int lsetfilecon_raw(const char *" path ", char * "con );
|
||||
.BI "int lsetfilecon_raw(const char *" path ", char *" con );
|
||||
.sp
|
||||
.BI "int fsetfilecon(int "fd ", char * "con );
|
||||
.BI "int fsetfilecon(int "fd ", char *" con );
|
||||
.sp
|
||||
.BI "int fsetfilecon_raw(int "fd ", char * "con );
|
||||
.BI "int fsetfilecon_raw(int "fd ", char *" con );
|
||||
.
|
||||
.SH "DESCRIPTION"
|
||||
.BR setfilecon ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user