Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Sep 2006 18:00:15 GMT
From:      Laurent LEVIER <llevier@argosnet.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/102913: /etc/rc.d/named killall in jailed OS
Message-ID:  <200609051800.k85I0FcW010712@www.freebsd.org>
Resent-Message-ID: <200609051810.k85IAGvl083938@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         102913
>Category:       misc
>Synopsis:       /etc/rc.d/named killall in jailed OS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 05 18:10:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Laurent LEVIER
>Release:        6.1p3
>Organization:
>Environment:
useless
>Description:
/etc/rc.d/named script tries to kill named with rndc.
Upon failure, it kills the named with the 'killall' procedure.

Unfortunately, when OS runs jails, this killall also kills all Jails named.

Should be corrected to avoid this ;-)


>How-To-Repeat:
Build a jail
Setup DNS into jails
/etc/rc.d/named stop

>Fix:
Instead of killall, take from /etc/rc.conf named args to build the named process line, and use ps to detect this line and then send either -15 or -9.
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609051800.k85I0FcW010712>