From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 23 Jan 2015 20:46:27 +0300 From: "Dmitry V. Levin" To: Linux console tools development discussion Message-ID: <20150123174626.GA9914@altlinux.org> References: <20140926054204.GH3701@kylemanna.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OgqxwSJOaUobr8KG" Content-Disposition: inline In-Reply-To: <20140926054204.GH3701@kylemanna.com> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [kbd] [PATCH] vlock: Handle tty dying X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2015 17:46:27 -0000 Archived-At: List-Archive: --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Fri, Sep 26, 2014 at 05:42:14AM +0000, Kyle Manna wrote: > Hi guys, >=20 > I ran into a problem where if vlock was running over ssh and the ssh > session died my system logs would get spammed by the now orphaned vlock > process on Arch Linux: >=20 > Sep 25 20:51:12 hostname vlock[31336]: pam_unix(vlock:auth): auth cou= ld not identify password for [user] > Sep 25 20:51:13 hostname vlock[31336]: pam_unix(vlock:auth): auth cou= ld not identify password for [user] > Sep 25 20:51:14 hostname vlock[31336]: pam_unix(vlock:auth): auth cou= ld not identify password for [user] >=20 > I was able to re-create this in many other situations (ssh, xterm > window/tab, tmux window/pane, etc). >=20 > The patch know checks for a tty on stdin where PAM will likely ask for > the password and exits if it's not found. I've never seen this myself because in systems where I use vlock pam_authenticate consistently returns PAM_INCOMPLETE in such cases. I'll shortly post patches to handle these cases gracefully. --=20 ldv --OgqxwSJOaUobr8KG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlTCiPIACgkQfKvmrJ41Nh4+pACfULlcxHPyF6yj59i2ubTg7QCR wNUAmwXH8U2lLuxcOwxjKdTcDmM6P/hp =otLw -----END PGP SIGNATURE----- --OgqxwSJOaUobr8KG--