Loading init/service.cpp +3 −1 Original line number Original line Diff line number Diff line Loading @@ -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 ""; Loading Loading
init/service.cpp +3 −1 Original line number Original line Diff line number Diff line Loading @@ -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 ""; Loading