callbacks.h revision 13cd4c8960688af11ad23b4c946149015c80d549
1/* 2 * This file describes the callbacks passed to selinux_init() and available 3 * for use from the library code. They all have default implementations. 4 */ 5#ifndef _SELINUX_CALLBACKS_H_ 6#define _SELINUX_CALLBACKS_H_ 7 8#include <stdio.h> 9#include <stdlib.h> 10#include <string.h> 11#include <selinux/selinux.h> 12#include "dso.h" 13 14/* callback pointers */ 15extern int __attribute__ ((format(printf, 2, 3))) 16(*selinux_log) (int type, const char *, ...) hidden; 17 18extern int 19(*selinux_audit) (void *, security_class_t, char *, size_t) hidden; 20 21extern int 22(*selinux_validate)(security_context_t *ctx) hidden; 23 24#endif /* _SELINUX_CALLBACKS_H_ */ 25