[sudo] - added upstream patch to fix rhbz#638345
Daniel Kopeček
mildew at fedoraproject.org
Wed Sep 29 08:26:01 UTC 2010
commit ecddd163e2bc4108c09d6759577099cae76c7c24
Author: Daniel Kopecek <dkopecek at redhat.com>
Date: Wed Sep 29 10:26:02 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 5419701..8f6d88f 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: 3%{?dist}
+Release: 4%{?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-4
+- added upstream patch to fix rhbz#638345
+
* Mon Sep 20 2010 Daniel Kopecek <dkopecek at redhat.com> - 1.7.4p4-3
- added patch for #635250
- /var/run/sudo -> /var/db/sudo in .spec
More information about the scm-commits
mailing list