Merge "Log a warning on services that lack SELinux domains."
This commit is contained in:
commit
6fec3a2304
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue