@@ -157,7 +157,7 @@ int avc_open(struct selinux_opt *opts, unsigned nopts)
break;
}
- return avc_init("avc", NULL, NULL, NULL, NULL);
+ return avc_init2("avc", NULL, NULL, NULL, NULL);
}
int avc_init(const char *prefix,
@@ -165,6 +165,15 @@ int avc_init(const char *prefix,
const struct avc_log_callback *log_cb,
const struct avc_thread_callback *thread_cb,
const struct avc_lock_callback *lock_cb)
+{
+ return avc_init2(prefix, mem_cb, log_cb, thread_cb, lock_cb);
+}
+
+int avc_init2(const char *prefix,
+ const struct avc_memory_callback *mem_cb,
+ const struct avc_log_callback *log_cb,
+ const struct avc_thread_callback *thread_cb,
+ const struct avc_lock_callback *lock_cb)
{
struct avc_node *new;
int i, rc = 0;
@@ -173,4 +173,9 @@ int avc_ss_set_auditdeny(security_id_t ssid, security_id_t tsid,
/* netlink kernel message code */
extern int avc_netlink_trouble ;
+extern int avc_init2(const char *msgprefix,
+ const struct avc_memory_callback *mem_callbacks,
+ const struct avc_log_callback *log_callbacks,
+ const struct avc_thread_callback *thread_callbacks,
+ const struct avc_lock_callback *lock_callbacks);
#endif /* _SELINUX_AVC_INTERNAL_H_ */