Package: libuuid1
Version: 1.38+1.39-WIP-2005.12.10-1
Severity: important

The current libuuid has this in lib/uuid/gen_uuid.c (summarised):

static int get_random_fd(void)
{
        static int      fd = -2;

        if (fd == -2) {
                fd = open("/dev/urandom", O_RDONLY);
        }
        return fd;
}

fd is never closed, and so is left open over an execve().  This can
cause problems (and is causing me trouble exec'in the LVM tools, which
spew a lot of warnings about it).

Please could you use fcntl to set FD_CLOEXEC on the fd?  This would fix
the problem quite nicely, for example:

  fcntl(fd, F_SETFD, fcntl(fd, F_GETFD, 0) | FD_CLOEXEC));


Many thanks,
Roger


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages libuuid1 depends on:
ii  libc6                         2.3.5-10   GNU C Library: Shared libraries an

libuuid1 recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to