selinux/libselinux/man/man3
Stephen Smalley 9eb9c93275 Get rid of security_context_t and fix const declarations.
In attempting to enable building various part of Android with -Wall -Werror,
we found that the const security_context_t declarations in libselinux
are incorrect; const char * was intended, but const security_context_t
translates to char * const and triggers warnings on passing
const char * from the caller.   Easiest fix is to replace them all with
const char *.  And while we are at it, just get rid of all usage of
security_context_t itself as it adds no value - there is no true
encapsulation of the security context strings and callers already
directly use string functions on them.  typedef left to permit
building legacy users until such a time as all are updated.

This is a port of Change-Id I2f9df7bb9f575f76024c3e5f5b660345da2931a7
from Android, augmented to deal with all of the other code in upstream
libselinux and updating the man pages too.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: Eric Paris <eparis@redhat.com>
2014-02-19 16:11:48 -05:00
..
avc_add_callback.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
avc_audit.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
avc_av_stats.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
avc_cache_stats.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
avc_cleanup.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
avc_compute_create.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
avc_compute_member.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
avc_context_to_sid.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
avc_destroy.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
avc_entry_ref_init.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
avc_get_initial_context.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
avc_get_initial_sid.3 Author: Daniel J Walsh 2008-09-29 15:55:18 -04:00
avc_has_perm_noaudit.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
avc_has_perm.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
avc_init.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
avc_netlink_acquire_fd.3 The attached patch enables userspace object managers to handle notification 2009-04-07 22:08:48 -04:00
avc_netlink_check_nb.3 The attached patch enables userspace object managers to handle notification 2009-04-07 22:08:48 -04:00
avc_netlink_close.3 The attached patch enables userspace object managers to handle notification 2009-04-07 22:08:48 -04:00
avc_netlink_loop.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
avc_netlink_open.3 The attached patch enables userspace object managers to handle notification 2009-04-07 22:08:48 -04:00
avc_netlink_release_fd.3 The attached patch enables userspace object managers to handle notification 2009-04-07 22:08:48 -04:00
avc_open.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
avc_reset.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
avc_sid_stats.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
avc_sid_to_context.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
checkPasswdAccess.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
context_free.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
context_new.3 libselinux: man: context_new(3): fix the return value description 2013-02-05 20:14:44 -05:00
context_range_get.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
context_range_set.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
context_role_get.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
context_role_set.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
context_type_get.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
context_type_set.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
context_user_get.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
context_user_set.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
fgetfilecon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
fgetfilecon.3 Author: Daniel J Walsh 2008-09-29 15:12:38 -04:00
fini_selinuxmnt.3 Author: Guido Trentalancia 2009-11-27 14:44:41 -05:00
freecon.3 libselinux: merge freecon with getcon man page 2011-12-21 12:35:06 -05:00
freeconary.3 libselinux: merge freecon with getcon man page 2011-12-21 12:35:06 -05:00
fsetfilecon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
fsetfilecon.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
get_default_context_with_level.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
get_default_context_with_role.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
get_default_context_with_rolelevel.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
get_default_context.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
get_default_type.3 Author: Daniel J Walsh 2008-09-29 15:55:18 -04:00
get_ordered_context_list_with_level.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
get_ordered_context_list.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
getcon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
getcon.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
getexeccon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
getexeccon.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
getfilecon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
getfilecon.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
getfscreatecon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
getfscreatecon.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
getkeycreatecon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
getkeycreatecon.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
getpeercon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
getpeercon.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
getpidcon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
getpidcon.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
getprevcon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
getprevcon.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
getseuserbyname.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
getsockcreatecon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
getsockcreatecon.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
init_selinuxmnt.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
is_context_customizable.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
is_selinux_enabled.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
is_selinux_mls_enabled.3 Author: Daniel J Walsh 2008-09-29 15:55:18 -04:00
lgetfilecon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
lgetfilecon.3 Author: Daniel J Walsh 2008-09-29 15:12:38 -04:00
lsetfilecon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
lsetfilecon.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
manual_user_enter_context.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
matchmediacon.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
matchpathcon_checkmatches.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
matchpathcon_filespec_add.3 Author: Guido Trentalancia 2009-11-27 14:44:41 -05:00
matchpathcon_filespec_destroy.3 Author: Guido Trentalancia 2009-11-27 14:44:41 -05:00
matchpathcon_filespec_eval.3 Author: Guido Trentalancia 2009-11-27 14:44:41 -05:00
matchpathcon_fini.3 Author: Daniel J Walsh 2008-09-29 15:55:18 -04:00
matchpathcon_index.3 Author: Guido Trentalancia 2009-11-27 14:44:41 -05:00
matchpathcon_init.3 Author: Daniel J Walsh 2008-09-29 15:55:18 -04:00
matchpathcon.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
mode_to_security_class.3 libselinux: mode_to_security_class: interface to translate a mode_t in to a security class 2013-02-05 20:14:40 -05:00
print_access_vector.3 Author: Guido Trentalancia 2009-11-27 14:44:41 -05:00
query_user_context.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
rpm_execcon.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
security_av_perm_to_string.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
security_av_string.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
security_check_context_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
security_check_context.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
security_class_to_string.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
security_commit_booleans.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
security_compute_av_flags_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
security_compute_av_flags.3 This patch enables applications to handle permissive domain correctly. 2009-04-07 22:10:30 -04:00
security_compute_av_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
security_compute_av.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
security_compute_create_name_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
security_compute_create_name.3 libselinux: security_compute_create_name(3) 2012-03-28 14:52:14 -04:00
security_compute_create_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
security_compute_create.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
security_compute_member_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
security_compute_member.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
security_compute_relabel_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
security_compute_relabel.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
security_compute_user_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
security_compute_user.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
security_deny_unknown.3 It is useful for userspace object manager, if libselinux has an 2009-04-07 22:48:01 -04:00
security_disable.3 Laurent Bigonville patch to fix various minor manpage issues and correct section numbering. 2013-10-24 13:58:37 -04:00
security_get_boolean_active.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
security_get_boolean_names.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
security_get_boolean_pending.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
security_get_initial_context_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
security_get_initial_context.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
security_getenforce.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
security_load_booleans.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
security_load_policy.3 Laurent Bigonville patch to fix various minor manpage issues and correct section numbering. 2013-10-24 13:58:37 -04:00
security_mkload_policy.3 Author: Guido Trentalancia 2009-11-27 14:44:41 -05:00
security_policyvers.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
security_set_boolean.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
security_setenforce.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selabel_close.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selabel_lookup_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
selabel_lookup.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
selabel_open.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
selabel_stats.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
selinux_binary_policy_path.3 Add selinux_current_policy_path, which returns the a pointer to the loaded policy 2013-10-24 13:58:38 -04:00
selinux_boolean_sub.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
selinux_booleans_path.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selinux_check_access.3 libselinux: simple interface for access checks 2011-11-02 15:37:10 -04:00
selinux_check_passwd_access.3 Author: Guido Trentalancia 2009-11-27 14:44:41 -05:00
selinux_check_securetty_context.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
selinux_colors_path.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
selinux_contexts_path.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selinux_current_policy_path.3 Add selinux_current_policy_path, which returns the a pointer to the loaded policy 2013-10-24 13:58:38 -04:00
selinux_default_context_path.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selinux_default_type_path.3 Author: Daniel J Walsh 2008-09-29 15:55:18 -04:00
selinux_failsafe_context_path.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selinux_file_context_cmp.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
selinux_file_context_homedir_path.3 Author: Daniel J Walsh 2008-09-29 15:55:18 -04:00
selinux_file_context_local_path.3 Author: Daniel J Walsh 2008-09-29 15:55:18 -04:00
selinux_file_context_path.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selinux_file_context_verify.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
selinux_getenforcemode.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
selinux_getpolicytype.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
selinux_homedir_context_path.3 Author: Daniel J Walsh 2008-09-29 15:55:18 -04:00
selinux_lsetfilecon_default.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
selinux_media_context_path.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selinux_netfilter_context_path.3 Author: Daniel J Walsh 2008-09-29 15:55:18 -04:00
selinux_path.3 Author: Daniel J Walsh 2008-09-29 15:55:18 -04:00
selinux_policy_root.3 Laurent Bigonville patch to fix various minor manpage issues and correct section numbering. 2013-10-24 13:58:37 -04:00
selinux_raw_context_to_color.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
selinux_removable_context_path.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selinux_securetty_types_path.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selinux_set_callback.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
selinux_set_mapping.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
selinux_set_policy_root.3 Add selinux_set_policy_root sets an alternate policy root directory path 2013-10-24 13:58:37 -04:00
selinux_status_close.3 libselinux: add selinux_status_* interfaces for /selinux/status 2011-03-01 11:21:19 -05:00
selinux_status_deny_unknown.3 libselinux: add selinux_status_* interfaces for /selinux/status 2011-03-01 11:21:19 -05:00
selinux_status_getenforce.3 libselinux: add selinux_status_* interfaces for /selinux/status 2011-03-01 11:21:19 -05:00
selinux_status_open.3 libselinux: man: Fix typo in man page 2013-02-05 20:14:43 -05:00
selinux_status_policyload.3 libselinux: add selinux_status_* interfaces for /selinux/status 2011-03-01 11:21:19 -05:00
selinux_status_updated.3 libselinux: add selinux_status_* interfaces for /selinux/status 2011-03-01 11:21:19 -05:00
selinux_user_contexts_path.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selinux_usersconf_path.3 Author: Daniel J Walsh 2008-09-29 15:55:18 -04:00
selinux_x_context_path.3 Author: Daniel J Walsh 2008-09-29 15:55:18 -04:00
set_matchpathcon_flags.3 libselinux: man: Fix man pages formatting 2013-02-05 20:14:43 -05:00
set_matchpathcon_invalidcon.3 Author: Guido Trentalancia 2009-11-27 14:44:41 -05:00
set_matchpathcon_printf.3 Author: Guido Trentalancia 2009-11-27 14:44:41 -05:00
set_selinuxmnt.3 Author: Guido Trentalancia 2009-11-27 14:44:41 -05:00
setcon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
setcon.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
setexeccon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
setexeccon.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
setfilecon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
setfilecon.3 Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
setfscreatecon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
setfscreatecon.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
setkeycreatecon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
setkeycreatecon.3 Author: Daniel J Walsh 2008-09-29 15:12:38 -04:00
setsockcreatecon_raw.3 libselinux: man: Add references and man page links to _raw function variants 2013-02-05 20:14:43 -05:00
setsockcreatecon.3 Author: Daniel J Walsh 2008-09-29 15:55:18 -04:00
sidget.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
sidput.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
string_to_av_perm.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
string_to_security_class.3 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00