public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/openrc:0.38.x commit in: src/librc/
@ 2018-08-06 22:52 William Hubbs
  0 siblings, 0 replies; only message in thread
From: William Hubbs @ 2018-08-06 22:52 UTC (permalink / raw
  To: gentoo-commits

commit:     d05c8c2159a9cbcf9286adbd6cbc3b0d5d2a3b43
Author:     Zac Medico <zmedico <AT> gmail <DOT> com>
AuthorDate: Mon Aug  6 21:50:41 2018 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> 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) {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-06 22:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-06 22:52 [gentoo-commits] proj/openrc:0.38.x commit in: src/librc/ William Hubbs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox