1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 20:25:38 +03:00

Don't show a warning message in non-enforcing mode.

If we fail to load the SELinux policy only log an error message in
enforcing mode.
This commit is contained in:
Michael Biebl 2011-07-01 05:55:57 +02:00
parent 85f19d825e
commit 25bafad67f

View File

@ -72,12 +72,13 @@ int selinux_setup(char *const argv[]) {
return -errno;
} else {
log_full(enforce > 0 ? LOG_ERR : LOG_WARNING, "Failed to load SELinux policy.");
unlink("/dev/.systemd-relabel-run-dev");
if (enforce > 0)
if (enforce > 0) {
log_full(LOG_ERR, "Failed to load SELinux policy.");
return -EIO;
}
}
#endif