Re: Apache 2.x leaked descriptors

From: Steve Grubb (linux_4ever@yahoo.com)
Date: 02/25/03

  • Next message: Mike Mires: "freeconsole()"
    Date: 25 Feb 2003 18:41:04 -0000
    From: Steve Grubb <linux_4ever@yahoo.com>
    To: vuln-dev@securityfocus.com
    
    
    ('binary' encoding is not supported, stored as-is) In-Reply-To: <20030224132559.5665.qmail@www.securityfocus.com>

    >I think the real way to fix this for CGI is to have the parent process
    >set the F_CLOEXEC flag on all the descriptors it opens, except those
    >that the child is supposed to inherit.
    > /snip/
    >Michael Wojcik

    Yes, this is the correct fix and easy enough to do. I just don't know why
    they've blown it off for 4 months. This fix should be applied to all
    files, pipes, and sockets.

    So far, this thread has pretty much centered on whether or not access &
    error log inheritance is a problem. Has anyone looked to see what the
    scope of the problem is? (Maybe that would convince some people.) Has
    anyone played with various modules looking to see if anything beyond
    access or error logs are available? For example, if you look at mod_php,
    they leak the file descriptor from accept() and the descriptor to the php
    page being executed in addition to all the other descriptors.

    There's a lot of apache modules...

    -Steve Grubb



    Relevant Pages

    • RE: Windows XP Wont boot to Sign In screen - Black screen after Logo
      ... This could very well fix it. ... > Microsoft Antispyware doesn't find anything in it's search (It does hang the ... > I have run a registry fix program, and while it found some stuff it doesn't ... > My error log says: ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: /var/log/messages
      ... Why not discover the source of the problem and fix it. ...
      (Fedora)
    • Re: [RCF] [PATCH] unprivileged mount/umount
      ... When a file descriptor is sent from one process to other, ... attached a patch that can fix the problem, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: RPC and NT AUTHORIY/System
      ... Marc Reynolds ... Microsoft Technical Support ... > The only error log I can find is C:\windows\system32 ... > Like most people I don't speak Errorese, so anyone got any> idea what this actaully means and how I can fix it? ...
      (microsoft.public.windowsxp.network_web)
    • Re: [PATCH 1/6] [2.6.29] epoll: fix for epoll_wait sometimes returning events on closed fds
      ... And current documentations clearly states it, maybe your man page is too old? ... Q6 Will closing a file descriptor cause it to be removed from all epoll sets automatically? ... A file descriptor is removed from an epoll set only after all the ... be more difficult to fix problem that my patch is trying to fix (which ...
      (Linux-Kernel)