File openssh-6.6p1-ignore_postauth_SIGXFSZ.patch of Package openssh.10219
# HG changeset patch
# Parent ef0fe7086a4a7a98120dd848414e81b56cca92f6
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);