[Bug 251632] [NEW] DHCP client should not create temporary files in /etc

Mikael Ståldal mikael at staldal.nu
Thu Jul 24 22:23:39 BST 2008


Public bug reported:

Binary package hint: dhcp3-client

When /sbin/dhclient-script updates /etc/resolv.conf, it creates a
temporary file /etc/resolv.conf.dhclient-new.

It's not a good idea to create temporary files in /etc, they should be
created in /tmp instead.

/etc might be mounted read-only, and then /sbin/dhclient-script fails.
Or /etc might be on a device you don't want unnecessary write access on
(e.g. flash disk).

I have made a patch to fix the problem. Now it's possible to have /etc
read-only if it contains resolv.conf as a symlink to some writeable
filesystem (e.g. /tmp/resolv.conf).

1)
Description:    Ubuntu 8.04.1
Release:        8.04

2)
dhcp3-client  3.0.6.dfsg-1ubuntu9

** Affects: dhcp3 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
DHCP client should not create temporary files in /etc
https://bugs.launchpad.net/bugs/251632
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.



More information about the Ubuntu-server-bugs mailing list