misc/96729: jails still in the system after stopping them

Gergely Czuczy phoemix at harmless.hu
Wed May 3 19:40:38 UTC 2006


>Number:         96729
>Category:       misc
>Synopsis:       jails still in the system after stopping them
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 03 19:40:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Gergely Czuczy
>Release:        6.0-RELEASE-p6
>Organization:
Harmless Digital
>Environment:
FreeBSD trillian.harmless.hu 6.0-RELEASE-p6 FreeBSD 6.0-RELEASE-p6 #1: Mon Apr 10 20:09:00 CEST 2006     root at trillian.harmless.hu:/usr/obj/usr/src/sys/TRILLIAN  i386

>Description:
Jails keep on stucking in the system after stopping them. As i have experienced it mostly occurs when i leave something in the jail when stopping them.
i use to start/stop jails the rc.d script. i go inside a running jail with ``jexec <id> /usr/local/bin/bash'' (so, a standard shell), and when i'm in, i stop the jail. after i leave the shell i still can see the jail listed with jls.
i was unable to find any utilities to purge these unused entries from the jail "registry".
i have tried to put back it's id to /var/run/<id file>, and invoke the /etc/rc.d/jail/stop script again, but it had no effect on them.

>How-To-Repeat:
1) start up a jail
2) using jexec, enter into it with a shell
3) stop the jail
4) leave the jail with the jexec shell
5) check it with jls, the jail will be still around

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list