Merge "Log a warning on services that lack SELinux domains."

This commit is contained in:
Nick Kralevich 2013-12-09 23:30:35 +00:00 committed by Gerrit Code Review
commit 6fec3a2304

View file

@ -221,6 +221,9 @@ void service_start(struct service *svc, const char *dynamic_args)
}
rc = security_compute_create(mycon, fcon, string_to_security_class("process"), &scon);
if (rc == 0 && !strcmp(scon, mycon)) {
ERROR("Warning! Service %s needs a SELinux domain defined; please fix!\n", svc->name);
}
freecon(mycon);
freecon(fcon);
if (rc < 0) {