selinux-policy/libselinux/utils/selinuxenabled.c

10 lines
140 B
C
Raw Normal View History

2005-10-07 13:42:05 +00:00
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <selinux/selinux.h>
int main(void)
{
return !is_selinux_enabled();
}