Re: Improving FreeBSD-SA-07:01.jail fix
- From: "Simon L. Nielsen" <simon@xxxxxxxxxxx>
- Date: Sat, 20 Jan 2007 18:01:59 +0100
On 2007.01.20 17:52:32 +0100, Stefan Bethke wrote:
Am 20.01.2007 um 13:24 schrieb Simon L. Nielsen:
BTW. with regard to the console.log file I really don't think it
should be put back inside the jail unless it's possible to make the
generation of the file entirely inside the jail since it's just not
worth the risk/complexity.
I'm probably missing something, but why not replace:
_jail_id=$(head -1 ${_tmp_jail})
tail +2 ${_tmp_jail} >${_rootdir}/var/log/console.log
with:
_jail_id=$(head -1 ${_tmp_jail})
tail +2 ${_tmp_jail} | jexec ${_jail_id} sh -c "cat >/var/log/
console.log"
I thought of, and actually implemented, a similar solution when I
worked on the problem but there are two problems:
- You cannot be sure cat exists inside the jail.
- The jail could already have exited again in which case jexec will
fail.
--
Simon L. Nielsen
_______________________________________________
freebsd-security@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscribe@xxxxxxxxxxx"
- References:
- FreeBSD Security Advisory FreeBSD-SA-07:01.jail
- From: FreeBSD Security Advisories
- HEADS UP: Re: FreeBSD Security Advisory FreeBSD-SA-07:01.jail
- From: Colin Percival
- Re: HEADS UP: Re: FreeBSD Security Advisory FreeBSD-SA-07:01.jail
- From: Pawel Jakub Dawidek
- Re: Improving FreeBSD-SA-07:01.jail fix [was: HEADS UP: Re: FreeBSD Security Advisory FreeBSD-SA-07:01.jail]
- From: Simon L. Nielsen
- Re: Improving FreeBSD-SA-07:01.jail fix
- From: Stefan Bethke
- FreeBSD Security Advisory FreeBSD-SA-07:01.jail
- Prev by Date: Re: Improving FreeBSD-SA-07:01.jail fix [was: HEADS UP: Re: FreeBSD Security Advisory FreeBSD-SA-07:01.jail]
- Next by Date: Re: Improving FreeBSD-SA-07:01.jail fix
- Previous by thread: Re: Improving FreeBSD-SA-07:01.jail fix
- Next by thread: Re: HEADS UP: Re: FreeBSD Security Advisory FreeBSD-SA-07:01.jail
- Index(es):
Relevant Pages
|
|