Mailinglist Archive: vhostmd (6 mails)

< Previous Next >
Re: [vhostmd] [PATCH] Bug fix: chdir ("/") when daemonizing self.
  • From: Jim Fehlig <jfehlig@xxxxxxxxxx>
  • Date: Wed, 09 Dec 2009 08:14:45 -0700
  • Message-id: <4B1FBEE5.3090001@xxxxxxxxxx>
Richard W.M. Jones wrote:
This is quite a serious bug in the daemonization code. If we don't
chdir, then an arbitrary directory can be held open. For example:

# cd /tmp/foo
# /etc/init.d/vhostmd start
# pgrep vhostmd
19538
# ls -l /proc/19538/cwd
lrwxrwxrwx 1 root root 0 Dec 9 07:20 /proc/19538/cwd -> /tmp/foo

[This bug was identified by Dan Berrange]


Wow! Yeah, not good.

ACK.

Jim
--
To unsubscribe, e-mail: vhostmd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: vhostmd+help@xxxxxxxxxxxx

< Previous Next >
List Navigation
References