V2: - Simplified now that dso.h stuff has been removed. - selinux_check_passwd_access has been deprecated and now both selinux_check_passwd_access and checkPasswdAccess are recomending selinux_check_access. - matchpathcon is linked statically to get access to deprecated routines and prints a deprecated warning to stderr. V1: I went through and annotated deprecated routines we have in libselinux that are mentioned to be deprecated either in code comments and/or manpages. External users, when compiling will see a warning similair to some sample output: a.c: In function ‘main’: a.c:18:2: warning: ‘foo’ is deprecated: foo bar msg [-Wdeprecated-declarations] foo(); ^~~ a.c:5:5: note: declared here int foo(void) { ^~~ a.c:19:2: warning: ‘boo’ is deprecated [-Wdeprecated-declarations] boo(); ^~~ a.c:11:5: note: declared here int boo(void) { [PATCH v2 01/18] security_load_booleans: update return comment [PATCH v2 02/18] security_load_booleans: annotate deprecated [PATCH v2 03/18] selinux_booleans_path: annotate deprecated [PATCH v2 04/18] selinux_users_path: annotate deprecated [PATCH v2 05/18] rpm_execcon: annotate deprecated [PATCH v2 06/18] sidget: annotate deprecated [PATCH v2 07/18] sidput: annotate deprecated [PATCH v2 08/18] checkPasswdAccess: annotate deprecated [PATCH v2 09/18] matchpathcon_init: annotate deprecated [PATCH v2 10/18] matchpathcon_fini: annotate deprecated [PATCH v2 11/18] matchpathcon: annotate deprecated [PATCH v2 12/18] avc_init: annotate deprecated [PATCH v2 13/18] avc: create internal avc_init interface [PATCH v2 14/18] matchpathcon: create internal matchpathcon_fini [PATCH v2 15/18] matchpathcon: create internal matchpathcon interface [PATCH v2 16/18] selinux_check_passwd_access: annotate deprecated [PATCH v2 17/18] utils: matchpathcon to use interal interfaces [PATCH v2 18/18] utils: matchpathcon add deprecated warning