Your message dated Fri, 13 Jul 2007 13:47:04 +0000 with message-id <[EMAIL PROTECTED]> and subject line Bug#432066: 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 Tags: patch Version 0.3 of this package in Ubuntu contain a suid program check-foreground-console for making it easier to check if a user is in the foreground on the console form scripts. I suspect it would be useful to have this program in Debian as well, at the very least to reduce the divergence with the Ubuntu version. Here is the patch from Ubuntu to add the script. diff -urN libpam-foreground-0.2/check-foreground-console.c libpam-foreground-0.2-debian/check-foreground-console.c --- libpam-foreground-0.2/check-foreground-console.c 1970-01-01 01:00:00.000000000 +0100 +++ libpam-foreground-0.2-debian/check-foreground-console.c 2007-07-07 09:27:10.000000000 +0200 @@ -0,0 +1,50 @@ +/* + * check-foreground-console: A tool to check if the current console is owned + * by the calling user. + * + * Copyright 2006 Daniel Silverstone <[EMAIL PROTECTED]> + * + * Licence: GPL v2 (but not later) + */ + +#define CONSOLEDIR "/var/run/console" +#define FILEPATTERN "%s/%s:%d" +#define DIEIF(X) if ((X)) return 2; + +#include <limits.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <sys/ioctl.h> +#include <linux/vt.h> +#include <fcntl.h> +#include <unistd.h> +#include <stdlib.h> +#include <pwd.h> +#include <string.h> +#include <stdio.h> + +int main(int argc, char **argv) +{ + char buffer[PATH_MAX]; + char *username; + int fgvt; + int fd; + struct vt_stat vtstat; + struct passwd *userinfo; + + fd = open("/dev/console", O_RDWR); + DIEIF((fd < 1)); + DIEIF((ioctl(fd, VT_GETSTATE, &vtstat))); + close(fd); + fgvt = vtstat.v_active; + DIEIF((fgvt > 99)); + + userinfo = getpwuid(getuid()); + username = userinfo->pw_name; + + /* All gathered together */ + snprintf(buffer, PATH_MAX, FILEPATTERN, CONSOLEDIR, username, fgvt); + + return ((open(buffer, O_RDONLY)) == -1); + +} diff -urN libpam-foreground-0.2/debian/rules libpam-foreground-0.2-debian/debian/rules --- libpam-foreground-0.2/debian/rules 2007-07-06 23:36:56.000000000 +0200 +++ libpam-foreground-0.2-debian/debian/rules 2007-07-07 09:27:10.000000000 +0200 @@ -45,7 +45,11 @@ # Add here commands to install the package into debian/libpam-foreground. mkdir -p debian/libpam-foreground/lib/security + mkdir -p debian/libpam-foreground/bin cp pam_foreground.so debian/libpam-foreground/lib/security + cp check-foreground-console debian/libpam-foreground/bin/ + chown root:root debian/libpam-foreground/bin/check-foreground-console + chmod u=rwxs,g=rx,o=rx debian/libpam-foreground/bin/check-foreground-console # Build architecture-independent files here. @@ -73,7 +77,7 @@ dh_link dh_strip dh_compress - dh_fixperms + dh_fixperms -Xcheck-foreground-console # dh_perl # dh_python # dh_makeshlibs diff -urN libpam-foreground-0.2/Makefile libpam-foreground-0.2-debian/Makefile --- libpam-foreground-0.2/Makefile 2007-07-06 23:59:44.000000000 +0200 +++ libpam-foreground-0.2-debian/Makefile 2007-07-07 09:27:10.000000000 +0200 @@ -1,7 +1,11 @@ +all: pam_foreground.so check-foreground-console + +check-foreground-console: check-foreground-console.c + gcc -O0 -g -Wall -o check-foreground-console check-foreground-console.c + pam_foreground.so: pam_foreground.c gcc -fPIC -O2 -Wall -c pam_foreground.c ld -x --shared -o pam_foreground.so pam_foreground.o -lpam -lc clean: - - rm *.o *.so + - rm *.o *.so check-foreground-console -default: pam_foreground.so
--- 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 ---

