core/selinux-setup: actually skip setup gracefully when libselinux is not available
Follow-up for 83b6ef9b62
This commit is contained in:
@@ -19,8 +19,10 @@ int mac_selinux_setup(bool *loaded_policy) {
|
||||
int r;
|
||||
|
||||
r = dlopen_libselinux();
|
||||
if (r < 0)
|
||||
return log_debug_errno(r, "No SELinux library available, skipping setup: %m");
|
||||
if (r < 0) {
|
||||
log_debug_errno(r, "No SELinux library available, skipping setup.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
mac_selinux_disable_logging();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user