Lines Matching full:selinux
35 #include <selinux/selinux.h>
36 #include <selinux/label.h>
37 #include <selinux/android.h>
861 ERROR("SELinux: Could not load property_contexts: %s\n",
865 INFO("SELinux: Loaded property contexts from %s\n", seopts_prop[i - 1].value);
879 if (access("/sys/fs/selinux", F_OK) != 0) {
880 /* SELinux is not compiled into the kernel, or has been disabled
881 * via the kernel command line "selinux=0".
886 if ((property_get("ro.boot.selinux", tmp) != 0) && (strcmp(tmp, "disabled") == 0)) {
887 /* SELinux is compiled into the kernel, but we've been told to disable it. */
898 if (property_get("ro.boot.selinux", tmp) == 0) {
904 /* SELinux is in the kernel, but we've been told to go into permissive mode */
909 ERROR("SELinux: Unknown value of ro.boot.selinux. Got: \"%s\". Assuming enforcing.\n", tmp);
921 INFO("SELinux: Attempting to reload policy files\n");
949 INFO("loading selinux policy\n");
951 ERROR("SELinux: Failed to load policy; rebooting into recovery mode\n");
958 INFO("SELinux: security_setenforce(%d)\n", is_enforcing);