Lines Matching full:selinux
35 #include <selinux/selinux.h>
36 #include <selinux/label.h>
37 #include <selinux/android.h>
238 ERROR("Warning! Service %s needs a SELinux domain defined; please fix!\n", svc->name);
874 ERROR("SELinux: Could not load property_contexts: %s\n",
878 INFO("SELinux: Loaded property contexts from %s\n", seopts_prop[policy_index].value);
894 if (access("/sys/fs/selinux", F_OK) != 0) {
895 /* SELinux is not compiled into the kernel, or has been disabled
896 * via the kernel command line "selinux=0".
901 if ((property_get("ro.boot.selinux", tmp) != 0) && (strcmp(tmp, "disabled") == 0)) {
902 /* SELinux is compiled into the kernel, but we've been told to disable it. */
915 if (property_get("ro.boot.selinux", tmp) == 0) {
921 /* SELinux is in the kernel, but we've been told to go into permissive mode */
926 ERROR("SELinux: Unknown value of ro.boot.selinux. Got: \"%s\". Assuming enforcing.\n", tmp);
939 INFO("SELinux: Attempting to reload policy files\n");
988 INFO("loading selinux policy\n");
990 ERROR("SELinux: Failed to load policy; rebooting into recovery mode\n");
997 INFO("SELinux: security_setenforce(%d)\n", is_enforcing);