1 #include <stdio.h>
2 #include "debug.h"
3
4 /*
5 * Need to keep these stubs for the libsepol interfaces exported in
6 * libsepol.map.in, as they are part of the shared library ABI.
7 */
8
9 static const char *msg = "Deprecated interface";
10
11 /*
12 * These two functions are deprecated and referenced in:
13 * include/libsepol/users.h
14 */
sepol_genusers(void * data __attribute ((unused)),size_t len __attribute ((unused)),const char * usersdir __attribute ((unused)),void ** newdata __attribute ((unused)),size_t * newlen __attribute ((unused)))15 int sepol_genusers(void *data __attribute((unused)),
16 size_t len __attribute((unused)),
17 const char *usersdir __attribute((unused)),
18 void **newdata __attribute((unused)),
19 size_t *newlen __attribute((unused)))
20 {
21 WARN(NULL, "%s", msg);
22 return -1;
23 }
24
sepol_set_delusers(int on __attribute ((unused)))25 void sepol_set_delusers(int on __attribute((unused)))
26 {
27 WARN(NULL, "%s", msg);
28 }
29
30 /*
31 * These two functions are deprecated and referenced in:
32 * include/libsepol/booleans.h
33 */
sepol_genbools(void * data __attribute ((unused)),size_t len __attribute ((unused)),const char * booleans __attribute ((unused)))34 int sepol_genbools(void *data __attribute((unused)),
35 size_t len __attribute((unused)),
36 const char *booleans __attribute((unused)))
37 {
38 WARN(NULL, "%s", msg);
39 return -1;
40 }
41
sepol_genbools_array(void * data __attribute ((unused)),size_t len __attribute ((unused)),char ** names __attribute ((unused)),int * values __attribute ((unused)),int nel __attribute ((unused)))42 int sepol_genbools_array(void *data __attribute((unused)),
43 size_t len __attribute((unused)),
44 char **names __attribute((unused)),
45 int *values __attribute((unused)),
46 int nel __attribute((unused)))
47 {
48 WARN(NULL, "%s", msg);
49 return -1;
50 }
51