Module: check_mk
Branch: master
Commit: 57cda41a66bdd7c90d465ed861ff33a55f9beaec
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=57cda41a66bdd7…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Nov 12 14:55:26 2011 +0100
Livecheck: drop root priviledges
After start, if we run setuid root, we create an icmp
socket and drop priviledges. Later we use inline check_icmp
only if the socket had been created. That way the user
can decide whether to use inline check_icmp by setting suid
root or not.
---
livestatus/src/check_icmp.c | 135 +++----------------------------------------
livestatus/src/livecheck.c | 13 ++++-
2 files changed, 20 insertions(+), 128 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=57cda41a66…