misc/139422: make the jail safe for the parent system

Andrey Groshev greenx at yartv.ru
Thu Oct 8 09:00:08 UTC 2009


>Number:         139422
>Category:       misc
>Synopsis:       make the jail safe for the parent system
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 08 09:00:07 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Groshev
>Release:        7.2-STABLE
>Organization:
YaroslavlTeleset
>Environment:
FreeBSD ear.yartelenet.ru 7.2-STABLE FreeBSD 7.2-STABLE #0: Mon Oct  5 13:56:49 MSD 2009     rootxxxxxxxx.ru:/usr/obj/usr/src/sys/earker  amd64
>Description:
There is I and my server.
Also there is other person a server responsible for a web.
Periodically he wants that I would instal some software, but in my representation, this software bad or unnecessary.
I wish to make jail for its and its software.
To give to this person complete access to it, let does all that wants.
But, if in the jail create wrong start scripts, then the parent system too cannot be started up to the end.

>How-To-Repeat:
For example: in jail  in /etc/rc.local write /bin/sh
And that starts all after this prison will not receive handle. 
>Fix:
Menshikov Konstantin in maillist advised:

I`m think, that this is bug in /etc/rc.d/jail script.
You can fix /etc/rc.d/jail
626 run_rc_command "${cmd}" &
627 sleep 5
instead
626 run_rc_command "${cmd}" 

This work.

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


More information about the freebsd-bugs mailing list