fix 401201: sudo complains: audit_log_user_command(): Connection refused
This commit is contained in:
		
							parent
							
								
									ebba253fbc
								
							
						
					
					
						commit
						bb69e9d436
					
				| @ -76,10 +76,13 @@ diff -up sudo-1.6.9p4/audit_help.c.audit sudo-1.6.9p4/audit_help.c | ||||
| +		return;
 | ||||
| +	else {
 | ||||
| +               err = audit_log_user_command (audit_fd, type, command, NULL, result);
 | ||||
| +		if( err <= 0 )
 | ||||
| +               /* 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()");
 | ||||
| +               }
 | ||||
| +	}
 | ||||
| +}
 | ||||
| +
 | ||||
| +#endif                         /* WITH_AUDIT */
 | ||||
| +
 | ||||
|  | ||||
| @ -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,6 +128,10 @@ rm -rf $RPM_BUILD_ROOT | ||||
| /bin/chmod 0440 /etc/sudoers || : | ||||
| 
 | ||||
| %changelog | ||||
| * Mon Jan 07 2008 Peter Vrabec <pvrabec@redhat.com> 1.6.9p4-5 | ||||
| - fix complains about audit_log_user_command(): Connection  | ||||
|   refused (#401201) | ||||
| 
 | ||||
| * Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.6.9p4-4 | ||||
| - Rebuild for deps | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user