[sudo-users] sudo: unable to send audit message: Connection refused

Todd C. Miller Todd.Miller at courtesan.com
Tue Sep 21 07:57:55 EDT 2010


The following source patch should also remove the warning message.

 - todd

diff -r 9a328aa25c53 -r a686884684ca linux_audit.c
--- linux_audit.c	Fri Sep 17 12:13:17 2010 -0400
+++ linux_audit.c	Tue Sep 21 07:56:36 2010 -0400
@@ -81,9 +81,9 @@
     }
     *--cp = '\0';
 
-    /* Log command, ignoring EPERM on error. */
+    /* Log command, ignoring ECONNREFUSED on error. */
     rc = audit_log_user_command(au_fd, AUDIT_USER_CMD, command, NULL, result);
-    if (rc <= 0)
+    if (rc <= 0 && errno != ECONNREFUSED)
 	warning("unable to send audit message");
 
     efree(command);



More information about the sudo-users mailing list