Created
September 30, 2017 19:36
-
-
Save czenzel/4107e56e7649a68c7b69bcae813fa2f8 to your computer and use it in GitHub Desktop.
DisableSELinux from Debian-NoRoot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Code from the Debian NoRoot Project | |
https://github.com/pelya/debian-noroot/blob/master/disableselinux/disableselinux.c | |
*/ | |
#include <errno.h> | |
extern int audit_open (void); | |
int audit_open (void) | |
{ | |
errno = EPROTONOSUPPORT; | |
return -1; | |
} | |
extern int is_selinux_enabled (void); | |
int is_selinux_enabled (void) | |
{ | |
return 0; | |
} | |
extern int setexecfilecon (const char *filename, const char *fallback_type); | |
int setexecfilecon (const char *filename, const char *fallback_type) | |
{ | |
return 0; | |
} | |
extern int setexeccon(const char * con); | |
int setexeccon(const char * con) | |
{ | |
return 0; | |
} | |
extern int setfilecon(const char *path, const char * con); | |
int setfilecon(const char *path, const char * con) | |
{ | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment