Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 49aefc45 authored by William Bellavance's avatar William Bellavance Committed by Michael Bestas
Browse files

init: don't skip starting a service with no domain if permissive

Requires external/libselinux change as well

Change-Id: I3f2887930e15d09014c2594141ba4acbbc8d6d9d
parent 88ac57a1
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -80,8 +80,10 @@ static std::string ComputeContextFromExecutable(std::string& service_name,
    }
    }
    if (rc == 0 && computed_context == mycon.get()) {
    if (rc == 0 && computed_context == mycon.get()) {
        LOG(ERROR) << "service " << service_name << " does not have a SELinux domain defined";
        LOG(ERROR) << "service " << service_name << " does not have a SELinux domain defined";
        if (selinux_status_getenforce() > 0) {
            return "";
            return "";
        }
        }
    }
    if (rc < 0) {
    if (rc < 0) {
        LOG(ERROR) << "could not get context while starting '" << service_name << "'";
        LOG(ERROR) << "could not get context while starting '" << service_name << "'";
        return "";
        return "";