DHCP client should not create temporary files in /etc
Bug #251632 reported by
Mikael Ståldal
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DHCP |
Fix Released
|
Unknown
|
|||
dhcp3 (Debian) |
Fix Released
|
Unknown
|
|||
dhcp3 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: dhcp3-client
When /sbin/dhclient-
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-
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
Changed in dhcp3 (Ubuntu): | |
status: | New → Confirmed |
Changed in dhcp: | |
status: | Unknown → New |
Changed in dhcp3 (Debian): | |
importance: | Undecided → Unknown |
status: | New → Unknown |
Changed in dhcp3 (Debian): | |
status: | Unknown → New |
Changed in dhcp: | |
status: | New → Fix Released |
Changed in dhcp3 (Debian): | |
status: | New → Fix Released |
To post a comment you must log in.
/etc/resolv.conf should symlink to somewhere in /var/ for persistence, such as /var/lib/ dhcp3/resolv. conf.
Temporary files used by /sbin/dhclient- script should be created using mktemp.