Debian Codegraph @

lib/selinux.c

raw
1 #include <stdlib.h>
2 #include <unistd.h>
3 #include "selinux.h"
4
5 /* Stubs for SELinux functions */
6 int is_selinux_enabled(void)
7 {
8 return 0;
9 }
10
11 void freecon(char *context)
12 {
13 free(context);
14 }
15
16 int getpidcon(pid_t pid, char **context)
17 {
18 *context = NULL;
19 return -1;
20 }
21
22 int getfilecon(const char *path, char **context)
23 {
24 *context = NULL;
25 return -1;
26 }
27
28 int security_get_initial_context(const char *name, char **context)
29 {
30 *context = NULL;
31 return -1;
32 }
33
34 int setexecfilecon(const char *filename, const char *fallback_type)
35 {
36 return -1;
37 }