Subject: bin/9657: dhclient requires writable leases file
To: None <gnats-bugs@gnats.netbsd.org>
From: John Hawkinson <jhawk@mit.edu>
List: netbsd-bugs
Date: 03/21/2000 18:36:05
>Number:         9657
>Category:       bin
>Synopsis:       dhclient requires writable leases file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 21 18:36:01 2000
>Last-Modified:
>Originator:     John Hawkinson
>Organization:
	MIT
>Release:        NetBSD 1.4.2
>Environment:
	
System: NetBSD zorkmid.mit.edu 1.4.2 NetBSD 1.4.2 (GENERIC) #3: Wed Mar 15 23:41:54 PST 2000 toddpw@vader.toddpw.net:/usr/src/sys/arch/i386/compile/GENERIC i386


>Description:
	dhclient really wants to be able to write to /var/db/dhclient_leases,
and will refuse to get a lease if it cannot do so. Unfortunately, there
are are plenty of times where you might want to get a dhcp
lease without a writable /var (e.g. single-user mode). dhclient should
allow you to get a lease without being able to write out the leases
file.

	Perhaps such behavior should be controlled by a command-line
option.

>How-To-Repeat:
	
>Fix:
	A crude workaround would be to run dhclient under chroot(8)
I don't think that's really acceptable though.
>Audit-Trail:
>Unformatted: