From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3B6D2138334 for ; Mon, 6 Aug 2018 22:52:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B2124E0801; Mon, 6 Aug 2018 22:52:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 81DACE0801 for ; Mon, 6 Aug 2018 22:52:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 105F0335CAC for ; Mon, 6 Aug 2018 22:52:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2ABB8389 for ; Mon, 6 Aug 2018 22:52:29 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1533595887.d05c8c2159a9cbcf9286adbd6cbc3b0d5d2a3b43.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:0.38.x commit in: src/librc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/librc/librc.c X-VCS-Directories: src/librc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: d05c8c2159a9cbcf9286adbd6cbc3b0d5d2a3b43 X-VCS-Branch: 0.38.x Date: Mon, 6 Aug 2018 22:52:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b9f2ecb8-ebd7-4aac-aaa7-15912347f031 X-Archives-Hash: d5f484cb56938cca4a49334567ff03b3 commit: d05c8c2159a9cbcf9286adbd6cbc3b0d5d2a3b43 Author: Zac Medico gmail com> AuthorDate: Mon Aug 6 21:50:41 2018 +0000 Commit: William Hubbs gentoo org> CommitDate: Mon Aug 6 22:51:27 2018 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=d05c8c21 librc: fix EACCES errno false-positive crash Use errno != EACCES to fix false-positive for non-root users with grsecurity kernels. Fixes: 37e29442721a ("librc: Add check for crashed state") This fixes #237 src/librc/librc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librc/librc.c b/src/librc/librc.c index 01bfac03..c38695cc 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -850,7 +850,7 @@ rc_service_state(const char *service) } if (state & RC_SERVICE_STARTED) { - if (rc_service_daemons_crashed(service)) + if (rc_service_daemons_crashed(service) && errno != EACCES) state |= RC_SERVICE_CRASHED; } if (state & RC_SERVICE_STOPPED) {