Package: consolekit Version: 0.3.0-4 Severity: important Tags: patch
Hi, consolekit is creating tagfiles in /var/run/console on login. This tagfiles are used by dbus to check if a user is logged in locally and should be able to send some messages (for example to mount a removable device). In Debian Edu we also use the at_console check to send messages about new devices to locally logged in users only (to prevent LTSP users from being notified about devices plugged into the terminal server). In Etch we used libpam-foreground, but switched to consolekit for Lenny. Back in the Etch times libpam-foreground did not differentiate between local and remote users (see bug #431730) and consolekit does now the same. I would like to ask to extend pam-foreground-compat.ck for a check which prevents tagfile creation for remote users. See attached patch for a possible modification. TIA and kind regards, Daniel -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages consolekit depends on: ii dbus 1.2.16-2 simple interprocess messaging syst ii libc6 2.9-26 GNU C Library: Shared libraries ii libck-connector0 0.3.0-4 ConsoleKit libraries ii libdbus-1-3 1.2.16-2 simple interprocess messaging syst ii libdbus-glib-1-2 0.82-1 simple interprocess messaging syst ii libglib2.0-0 2.20.5-1 The GLib library of C routines ii libx11-6 2:1.2.2-1 X11 client-side library ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime Versions of packages consolekit recommends: pn libpam-ck-connector <none> (no description available) consolekit suggests no packages. -- no debconf information
--- pam-foreground-compat.ck 2009-09-18 19:41:39.000000000 +0200 +++ /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck 2009-09-18 19:44:57.000000000 +0200 @@ -5,7 +5,7 @@ TAGFILE="$TAGDIR/`getent passwd $CK_SESSION_USER_UID | cut -f 1 -d:`" -if [ "$1" = "session_added" ]; then +if [ -z "$CK_SESSION_REMOTE_HOST_NAME" ] && [ "$1" = "session_added" ]; then mkdir -p "$TAGDIR" echo "$CK_SESSION_ID" >> "$TAGFILE" fi
signature.asc
Description: Digital signature