View | Details | Raw Unified | Return to bug 1402 | Differences between
and this patch

Collapse All | Expand All

(-)openssh-5.6p1/audit-linux.c.audit1a (-1 / +2 lines)
Lines 59-65 linux_audit_record_event(int uid, const Link Here
59
	saved_errno = errno;
59
	saved_errno = errno;
60
	close(audit_fd);
60
	close(audit_fd);
61
	errno = saved_errno;
61
	errno = saved_errno;
62
	return (rc >= 0);
62
	/* do not report error if the error is EPERM and sshd is run as non root user */
63
	return (rc >= 0) || ((rc == -EPERM) && (getuid() != 0));
63
}
64
}
64
65
65
/* Below is the sshd audit API code */
66
/* Below is the sshd audit API code */

Return to bug 1402