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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to