diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-09 13:14:35 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-09 13:14:35 +0000 |
commit | 9b8a97db9ec4b795e29e72289005fbc58484ebeb (patch) | |
tree | e24ca2d68215e57b4759fe5c032629821eabb250 /lib/selinux.c | |
parent | Initial commit. (diff) | |
download | iproute2-9b8a97db9ec4b795e29e72289005fbc58484ebeb.tar.xz iproute2-9b8a97db9ec4b795e29e72289005fbc58484ebeb.zip |
Adding upstream version 6.8.0.upstream/6.8.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/selinux.c')
-rw-r--r-- | lib/selinux.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/selinux.c b/lib/selinux.c new file mode 100644 index 0000000..7e5dd16 --- /dev/null +++ b/lib/selinux.c @@ -0,0 +1,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; +} |