File openssh-6.6p1-ignore_postauth_SIGXFSZ.patch of Package openssh.295

# HG changeset patch
# Parent 65b72f9ae74acc7becb5d4ac0174f04ef45764e0
Ignore SIGXFSZ in postauth - this prevents crashes due to file size limits
enforced by PAM session which in postauth include writing lastlog. This can
get past the limit for large UIDs.

Bugzilla:
bz:  https://bugzilla.mindrot.org/show_bug.cgi?id=2263
bnc: https://bugzilla.novell.com/show_bug.cgi?id=673532

Upstream commit:
146218ac11a1eb0dcade6f793d7acdef163b5ddc

diff --git a/openssh-6.6p1/monitor.c b/openssh-6.6p1/monitor.c
--- a/openssh-6.6p1/monitor.c
+++ b/openssh-6.6p1/monitor.c
@@ -491,16 +491,19 @@ monitor_child_postauth(struct monitor *p
 {
 	close(pmonitor->m_recvfd);
 	pmonitor->m_recvfd = -1;
 
 	monitor_set_child_handler(pmonitor->m_pid);
 	signal(SIGHUP, &monitor_child_handler);
 	signal(SIGTERM, &monitor_child_handler);
 	signal(SIGINT, &monitor_child_handler);
+#ifdef SIGXFSZ
+	signal(SIGXFSZ, SIG_IGN);
+#endif
 
 	if (compat20) {
 		mon_dispatch = mon_dispatch_postauth20;
 
 		/* Permit requests for moduli and signatures */
 		monitor_permit(mon_dispatch, MONITOR_REQ_MODULI, 1);
 		monitor_permit(mon_dispatch, MONITOR_REQ_SIGN, 1);
 		monitor_permit(mon_dispatch, MONITOR_REQ_TERM, 1);
openSUSE Build Service is sponsored by