[sudo/f13/master] - added upstream patch to fix rhbz#638345

Daniel Kopeček mildew at fedoraproject.org
Wed Sep 29 08:45:57 UTC 2010


commit 2c8839c66a8d2711928512b4bab861f6b0199387
Author: Daniel Kopecek <dkopecek at redhat.com>
Date:   Wed Sep 29 10:45:59 2010 +0200

    - added upstream patch to fix rhbz#638345

 sudo-1.7.4p4-auditconn.patch |   15 +++++++++++++++
 sudo.spec                    |    8 +++++++-
 2 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/sudo-1.7.4p4-auditconn.patch b/sudo-1.7.4p4-auditconn.patch
new file mode 100644
index 0000000..c04b15f
--- /dev/null
+++ b/sudo-1.7.4p4-auditconn.patch
@@ -0,0 +1,15 @@
+diff -r 9a328aa25c53 -r a686884684ca linux_audit.c
+--- a/linux_audit.c	Fri Sep 17 12:13:17 2010 -0400
++++ b/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);
diff --git a/sudo.spec b/sudo.spec
index fc54c51..541e509 100644
--- a/sudo.spec
+++ b/sudo.spec
@@ -1,7 +1,7 @@
 Summary: Allows restricted root access for specified users
 Name: sudo
 Version: 1.7.4p4
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: ISC
 Group: Applications/System
 URL: http://www.courtesan.com/sudo/
@@ -32,6 +32,8 @@ Patch4: sudo-1.7.4p3-sudolist.patch
 Patch5: sudo-1.7.4p4-getgrouplist.patch
 # reset HOME when using the `-i' option (#635250)
 Patch6: sudo-1.7.4p4-sudoi.patch
+# Ignore ECONREFUSED from audit_log_user_command()
+Patch7: sudo-1.7.4p4-auditconn.patch
 
 %description
 Sudo (superuser do) allows a system administrator to give certain
@@ -53,6 +55,7 @@ on many different machines.
 %patch4 -p1 -b .sudolist
 %patch5 -p1 -b .getgrouplist
 %patch6 -p0 -b .sudoi
+%patch7 -p1 -b .auditconn
 
 %build
 # handle newer autoconf
@@ -147,6 +150,9 @@ rm -rf $RPM_BUILD_ROOT
 /bin/chmod 0440 /etc/sudoers || :
 
 %changelog
+* Wed Sep 29 2010 Daniel Kopecek <dkopecek at redhat.com> - 1.7.4p4-3
+- added upstream patch to fix rhbz#638345
+
 * Mon Sep 20 2010 Daniel Kopecek <dkopecek at redhat.com> - 1.7.4p4-2
 - added patch for #635250
 


More information about the scm-commits mailing list