am 6fec3a23: Merge "Log a warning on services that lack SELinux domains."
* commit '6fec3a23046a3100c2ce1863afdd0191da69cdcc': Log a warning on services that lack SELinux domains.
This commit is contained in:
commit
b988e95c10
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…
Add table
Reference in a new issue