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