aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZac Medico <zmedico@gmail.com>2018-08-06 14:50:41 -0700
committerWilliam Hubbs <w.d.hubbs@gmail.com>2018-08-06 17:39:52 -0500
commit84ed570eaefcbb55b99ba425030bf7d1d1d46137 (patch)
tree710c76fd18c55627a5cedc97661f508b9ce69b30 /src
parent2eea73bfd5ce2f9993d52293fe7d25c0c804d592 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/librc/librc.c2
1 files changed, 1 insertions, 1 deletions
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) {