mirror of
https://github.com/topjohnwu/selinux.git
synced 2025-03-07 10:47:18 +00:00
libselinux: public symbol cleanup
Hide or remove symbols that should not be public. All uses of obj_class_compat were removed by commit 76913d8adb61b5afe28fd3b4ce91feab29e284dd ("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:
parent
b54758560a
commit
b660a87b5f
@ -19,7 +19,6 @@
|
||||
|
||||
char *selinux_mnt = NULL;
|
||||
int selinux_page_size = 0;
|
||||
int obj_class_compat = 1;
|
||||
|
||||
int has_selinux_config = 0;
|
||||
|
||||
|
@ -124,7 +124,7 @@ selabel_validate(struct selabel_handle *rec,
|
||||
*/
|
||||
extern int myprintf_compat;
|
||||
extern void __attribute__ ((format(printf, 1, 2)))
|
||||
(*myprintf) (const char *fmt, ...);
|
||||
(*myprintf) (const char *fmt, ...) hidden;
|
||||
|
||||
#define COMPAT_LOG(type, fmt...) if (myprintf_compat) \
|
||||
myprintf(fmt); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user