rpms/sudo/F-8 sudo-1.6.9p4-audit.patch,1.1,1.2 sudo.spec,1.52,1.53

Peter Vrabec (pvrabec) fedora-extras-commits at redhat.com
Mon Jan 7 18:34:22 UTC 2008


Author: pvrabec

Update of /cvs/extras/rpms/sudo/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17383

Modified Files:
	sudo-1.6.9p4-audit.patch sudo.spec 
Log Message:
- fix complains about audit_log_user_command(): Connection
  refused (#401201)


sudo-1.6.9p4-audit.patch:

Index: sudo-1.6.9p4-audit.patch
===================================================================
RCS file: /cvs/extras/rpms/sudo/F-8/sudo-1.6.9p4-audit.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sudo-1.6.9p4-audit.patch	30 Aug 2007 16:21:58 -0000	1.1
+++ sudo-1.6.9p4-audit.patch	7 Jan 2008 18:34:12 -0000	1.2
@@ -75,9 +75,12 @@
 +	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()");
++               }
 +	}
 +}
 +


Index: sudo.spec
===================================================================
RCS file: /cvs/extras/rpms/sudo/F-8/sudo.spec,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- sudo.spec	30 Aug 2007 16:21:58 -0000	1.52
+++ sudo.spec	7 Jan 2008 18:34:12 -0000	1.53
@@ -1,7 +1,7 @@
 Summary: Allows restricted root access for specified users
 Name: sudo
 Version: 1.6.9p4
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: BSD
 Group: Applications/System
 URL: http://www.courtesan.com/sudo/
@@ -128,6 +128,10 @@
 /bin/chmod 0440 /etc/sudoers || :
 
 %changelog
+* Mon Jan 07 2008 Peter Vrabec <pvrabec at redhat.com> 1.6.9p4-3
+- fix complains about audit_log_user_command(): Connection 
+  refused (#401201)
+
 * Thu Aug 30 2007 Peter Vrabec <pvrabec at redhat.com> 1.6.9p4-2
 - fix autotools stuff and add audit support
 




More information about the fedora-extras-commits mailing list