Package: molly-guard
Version: 0.4.4-2
Severity: normal

Hi,

molly-guard fails to detect an ssh session when run from within an active
screen.

I guess this is because of (30-query-hostname):

    PTS=$(readlink /proc/$$/fd/0)
    if ! pgrep -f "^sshd.+${PTS#/dev/}\>" >/dev/null \
    && [ -z "${SSH_CONNECTION:-}" ]; then

PTS will point to something that pgrep can not find.

We could check for $STY to test if inside screen or not, but no idea how to
proceed from there.

OTOH I don't understand the need for the pgrep-voodoo anyway, why not simply
check for ! -z $SSH_CONNECTION?

regards

        Stefan

-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-bpo.1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages molly-guard depends on:
ii  procps                        1:3.2.7-11 /proc file system utilities

molly-guard recommends no packages.

molly-guard suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to