libselinux: public symbol cleanup

Hide or remove symbols that should not be public.
All uses of obj_class_compat were removed by
commit 76913d8adb
("Deprecate use of flask.h and av_permissions.h")
and it never should have been public regardless,
so remove it.
myprintf is used by matchpathcon internally but should
not be public, so hide it.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
This commit is contained in:
Stephen Smalley 2016-09-21 11:09:26 -04:00
parent b54758560a
commit b660a87b5f
2 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@
char *selinux_mnt = NULL; char *selinux_mnt = NULL;
int selinux_page_size = 0; int selinux_page_size = 0;
int obj_class_compat = 1;
int has_selinux_config = 0; int has_selinux_config = 0;

View File

@ -124,7 +124,7 @@ selabel_validate(struct selabel_handle *rec,
*/ */
extern int myprintf_compat; extern int myprintf_compat;
extern void __attribute__ ((format(printf, 1, 2))) extern void __attribute__ ((format(printf, 1, 2)))
(*myprintf) (const char *fmt, ...); (*myprintf) (const char *fmt, ...) hidden;
#define COMPAT_LOG(type, fmt...) if (myprintf_compat) \ #define COMPAT_LOG(type, fmt...) if (myprintf_compat) \
myprintf(fmt); \ myprintf(fmt); \