From bb69e9d4366f66d8160589d6f9dfd6b82051316d Mon Sep 17 00:00:00 2001 From: Peter Vrabec Date: Mon, 7 Jan 2008 18:31:40 +0000 Subject: [PATCH] fix 401201: sudo complains: audit_log_user_command(): Connection refused --- sudo-1.6.9p4-audit.patch | 9 ++++++--- sudo.spec | 10 +++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/sudo-1.6.9p4-audit.patch b/sudo-1.6.9p4-audit.patch index 6775ef7..148c2a6 100644 --- a/sudo-1.6.9p4-audit.patch +++ b/sudo-1.6.9p4-audit.patch @@ -75,9 +75,12 @@ diff -up sudo-1.6.9p4/audit_help.c.audit sudo-1.6.9p4/audit_help.c + if (audit_fd < 0) + return; + else { -+ err = audit_log_user_command (audit_fd, type, command, NULL, result); -+ if( err <= 0 ) -+ perror("audit_log_user_command()"); ++ err = audit_log_user_command (audit_fd, type, command, NULL, result); ++ /* The kernel supports auditing and we had ++ enough privilege to write to the socket. */ ++ if( err <= 0 && !(errno == EPERM && getuid() != 0) ) { ++ perror("audit_log_user_command()"); ++ } + } +} + diff --git a/sudo.spec b/sudo.spec index ad2a404..951af42 100644 --- a/sudo.spec +++ b/sudo.spec @@ -1,7 +1,7 @@ Summary: Allows restricted root access for specified users Name: sudo Version: 1.6.9p4 -Release: 4%{?dist} +Release: 5%{?dist} License: BSD Group: Applications/System URL: http://www.courtesan.com/sudo/ @@ -128,11 +128,15 @@ rm -rf $RPM_BUILD_ROOT /bin/chmod 0440 /etc/sudoers || : %changelog +* Mon Jan 07 2008 Peter Vrabec 1.6.9p4-5 +- fix complains about audit_log_user_command(): Connection + refused (#401201) + * Wed Dec 05 2007 Release Engineering - 1.6.9p4-4 - - Rebuild for deps +- Rebuild for deps * Wed Dec 05 2007 Release Engineering - 1.6.9p4-3 - - Rebuild for openssl bump +- Rebuild for openssl bump * Thu Aug 30 2007 Peter Vrabec 1.6.9p4-2 - fix autotools stuff and add audit support