From 03534540a25fe4c0679928a2f3f023e596c78dc4 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 23 Mar 2007 12:36:36 +1100 Subject: statd - fix bug so statd can talk to kernel again. We need to call statd_get_socket before dropping privileges so that we have a privileged port. We use to do that when initialising notification as the same socket was used for reboot notication as for callbacks to the kernel. Now it is a different socket.. --- utils/statd/statd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils') diff --git a/utils/statd/statd.c b/utils/statd/statd.c index 22d5deb..6c5dbde 100644 --- a/utils/statd/statd.c +++ b/utils/statd/statd.c @@ -476,6 +476,8 @@ int main (int argc, char **argv) waitpid(pid, NULL, 0); } + /* Make sure we have a privilege port for calling into the kernel */ + statd_get_socket(); for (;;) { pmap_unset (SM_PROG, SM_VERS); -- cgit