Your message dated Fri, 13 Jul 2007 13:47:04 +0000 with message-id <[EMAIL PROTECTED]> and subject line Bug#431730: fixed in libpam-foreground 0.4-1 has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---Package: libpam-foreground Version: 0.2 Severity: important Hi, when using libpam-foreground in common-session, pam_foreground does create a lockfile independently from where the user comes. This way a lockfile is also created, when the users uses ssh to login from a network host. The number of the active virtual terminal does not give any sensible informations under such condition as it reflects the virtual terminal active on the "target" system and has nothing to do with ssh. Appended is a patch which checks the pam rhost for information about local or remote connections. When coming from remote rhost will contain information about the remote host and prevents the lockfile from being created. Greetings Daniel --- libpam-foreground-0.2.orig/pam_foreground.c 2006-01-24 02:00:42.000000000 +0100 +++ libpam-foreground-0.2/pam_foreground.c 2007-07-03 23:49:53.415530194 +0200 @@ -76,6 +76,7 @@ struct vt_stat vtstat; size_t len; int retval; + const char *rhost=NULL; retval = pam_get_user(pamh, &user, NULL); if (retval != PAM_SUCCESS) { @@ -83,6 +84,12 @@ return retval; } + retval = pam_get_item(pamh, PAM_RHOST, (const void **)&rhost); + if (retval != PAM_SUCCESS) { + D(("get remote host returned error: %s", pam_strerror(pamh,retval))); + return retval; + } + if (stat (AUTH_DIR, &finfo)) { if (errno != ENOENT) { D(("Can't access %s - %s\n", AUTH_DIR, @@ -139,7 +146,11 @@ sprintf(filename,"%s/%s:%d",AUTH_DIR,user,console); - fd = open(filename,O_CREAT|O_WRONLY|O_EXCL,0644); + /* Only for local sessions */ + + if (rhost == NULL || *rhost == '\0') { + fd = open(filename,O_CREAT|O_WRONLY|O_EXCL,0644); + } if (fd < 1) { D(("Can't open %s - %s\n",filename,strerr(errno))); @@ -163,6 +174,7 @@ unlink(filename); free: free(filename); + free(rhost); close(fd); fail: user = NULL;
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---Source: libpam-foreground Source-Version: 0.4-1 We believe that the bug you reported is fixed in the latest version of libpam-foreground, which is due to be installed in the Debian FTP archive: libpam-foreground_0.4-1.dsc to pool/main/libp/libpam-foreground/libpam-foreground_0.4-1.dsc libpam-foreground_0.4-1.tar.gz to pool/main/libp/libpam-foreground/libpam-foreground_0.4-1.tar.gz libpam-foreground_0.4-1_i386.deb to pool/main/libp/libpam-foreground/libpam-foreground_0.4-1_i386.deb A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [EMAIL PROTECTED], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Matthew Garrett <[EMAIL PROTECTED]> (supplier of updated libpam-foreground package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [EMAIL PROTECTED]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.7 Date: Fri, 13 Jul 2007 14:03:10 +0100 Source: libpam-foreground Binary: libpam-foreground Architecture: source i386 Version: 0.4-1 Distribution: unstable Urgency: low Maintainer: Matthew Garrett <[EMAIL PROTECTED]> Changed-By: Matthew Garrett <[EMAIL PROTECTED]> Description: libpam-foreground - create lockfiles describing which users own which console Closes: 431475 431730 432035 432066 432067 Changes: libpam-foreground (0.4-1) unstable; urgency=low . * Bring in the Ubuntu changes (Closes: #432066, #432067) * Clean /var/run/console on boot (Closes: #431475) * Check that the login isn't remote (Closes: #431730) * Ensure that full library dependency information is included (Closes: #432035) Files: f3999de67ddc90ffc47a15c5f9295e9d 1173 misc optional libpam-foreground_0.4-1.dsc 69ce7962df2e8fcd04568a58a0588800 4970 misc optional libpam-foreground_0.4-1.tar.gz 02898c7c5e4348a6070f2346fe27ea88 6398 misc optional libpam-foreground_0.4-1_i386.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iQIVAwUBRpd/etfD8TGrKpH1AQK2bw/9FCnLD1i3Yj0Ncdo+g1hM5+by1Wd+O9WV kNl962S9uZMV3AbwFbU/cx0Pi9oQ44bnTr7+btI8L6PBaniEVJ4k/1zRe7Bwjuzu 7tvGHuFdQW50droOHfj1OjHz9jBQu90wZHjRGOPPnmBWKAVkpLIvBftM0Iae+N53 WtzrGPzKiyOC/gyOVJPdQb7FvbBPQleGUHWlESdj9Mm0x9w138bvqH0rVIcQhuvf k/cf6oh+tUXU4pHyyRv3l8iqXvcniAA7KovToegAKNv2FFW3dW5wlABWvbkT05U2 fV1fq8DLqPiLCsZNoZGI02Q7/gGe7+ojw0mnKrpiprTx/qR2xhjQghB8NL5enQjA eSJFjM+PzflUuiJ7GYcJiziAoS6jfhEkYKZHlphNzpNtIbsT5kAyHctO5gdeV46G OGO97UirvR1MRvTmc9hEh5ed1MFIJwHQR0zbKZ7VFEvt9cPEgpHXl5z2kSfIP0y8 89G64I8l6FVMNYI/muRyvGFc0E381HcxPfB/evrOeRb7YDypiXbv3hcgAORqSF7M sdfdSlqtqYqFTaH5mIO0Jt7RP45xojLrMz6rrAUDXutqM6uuACigxvXX3XC6ff+C RH7H+S2iZwsYwUy94CXXPlksJKhCC0TD3e3YDcplaaKotrhRZ4iACEVVVRUiXs2j lwGPMwTfZCY= =vemz -----END PGP SIGNATURE-----
--- End Message ---

