[Pkg-samba-maint] Bug#695362: samba-common's dhcp hooks write to /etc/samba breaking ro root

Steve Langasek vorlon at debian.org
Sat Dec 8 20:05:20 UTC 2012


tags 695362 confirmed
thanks

On Fri, Dec 07, 2012 at 04:22:43PM +0100, Andrew Shadura wrote:
> Package: samba-common
> Version: 2:3.6.6-2
> Severity: normal

> samba-common provides a dhcp-client hook script,
> /etc/dhcp3/dhclient-enter-hooks.d/samba, which apparently writes to /etc
> thus breaking boot when the rootfs is read-only.

> SAMBA_DHCP_CONF=/etc/samba/dhcp.conf

> <...>
> 
> echo -n > ${SAMBA_DHCP_CONF}.new
> <...>
> mv ${SAMBA_DHCP_CONF}.new $SAMBA_DHCP_CONF

> It'd be cool if that could be disabled via /etc/defaults, or, better, if
> it could detect that location not being writable and not try to write
> there if it is.

The file should simply be moved to a guaranteed-writable directory -
probably /run.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20121208/12edad06/attachment.pgp>


More information about the Pkg-samba-maint mailing list