Re: Rooting FreeBSD , Privilege Escalation using Jails (P??????tur)
- From: Dag-Erling Smørgrav <des@xxxxxx>
- Date: Tue, 10 May 2011 19:24:28 +0200
"Poul-Henning Kamp" <phk@xxxxxxxxxxxxxx> writes:
"Dag-Erling Smørgrav" <des@xxxxxx> writes:
Jason Hellenthal <jhell@xxxxxxxxxx> writes:I identified this issue back when I implemented jails and though long
Do you know if there is a way that chmod on / from within the jail couldNot without adding explicit checks in the kernel.
be prevented easily without breaking something ? Maybe not failing but
falling though and return 0 for any operation with the sole argument of /.
and hard about adding a kernel hack to paste over this. [...] I
think we should stick to [Getty's rule] before adding more or less
random pieces of magic to the kernel.
I vote no as well, but for a different reason: there are many other
things the jailed root can do to the root directory, including flags,
extended attributes, etc. (some of which are fs-dependent), and it would
be difficult or impossible to identify all of them, not to mention those
that aren't yet possible but will be in the future. Fixing just one (or
two, or five) of them today might give users a false sense of security,
which is inexcusable when we can give a *true* sense of security by
telling them to "chmod 0700 $D/..".
DES
--
Dag-Erling Smørgrav - des@xxxxxx
_______________________________________________
freebsd-security@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Rooting FreeBSD , Privilege Escalation using Jails (P??????tur)
- From: Bakul Shah
- Re: Rooting FreeBSD , Privilege Escalation using Jails (P??????tur)
- References:
- Re: Rooting FreeBSD , Privilege Escalation using Jails (P??????tur)
- From: Poul-Henning Kamp
- Re: Rooting FreeBSD , Privilege Escalation using Jails (P??????tur)
- Prev by Date: Re: Rooting FreeBSD , Privilege Escalation using Jails (P??????tur)
- Next by Date: Re: Rooting FreeBSD , Privilege Escalation using Jails (P??????tur)
- Previous by thread: Re: Rooting FreeBSD , Privilege Escalation using Jails (P??????tur)
- Next by thread: Re: Rooting FreeBSD , Privilege Escalation using Jails (P??????tur)
- Index(es):
Relevant Pages
|