From: Helge Hafting <helge.hafting@hist.no>
To: Mitchell Blank Jr <mitch@sfgoth.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [RFC] relinquish_fs() syscall
Date: Tue, 30 Nov 2004 13:29:38 +0100 [thread overview]
Message-ID: <41AC67B2.6010601@hist.no> (raw)
In-Reply-To: <20041129135559.GC33900@gaz.sfgoth.com>
Mitchell Blank Jr wrote:
>Alan Cox wrote:
>
>
>>A priviledged user can ioperm/iopl their way out.
>>
>>
>
>OK, good point, at least on i386/x86_64. So before jailing itself a task
>will have to take CAP_SYS_RAWIO out of its permitted set. That shouldn't
>be too bad of a restriction for most programs to live with.
>
>
>
>>On Llu, 2004-11-29 at 11:43, Mitchell Blank Jr wrote:
>>
>>
>>>This has several benefits:
>>>
>>> * Considerably safer against root users in cage
>>>
>>>
>>Pardon. Its equally ineffectual. It might take someone a week longer to
>>write the exploit but an hour after that its no different.
>>
>>
>
>OK, could you please describe other attacks against it then?
>
>
>
>>> This is a big deal for privilege separation; currently it's hard to
>>> implement except in a daemon that starts its life as root. Now the
>>> same techniques can be used by any process.
>>>
>>>
>>That doesn't do name lookup, character set translation, or time (and a
>>few other things).
>>
>>
>
>Alan - have you looked at privsep implementation in, say, opensshd. The
>way privsep works is that you have two processes communicating over a
>UNIX domain socket. One then jails itself and handles all the hairy
>untrusted data. The unjailed process handles requests from inside as
>needed. So if the program needs to do DNS lookups then your privsep
>protocol would include a primitive for doing that.
>
>
So someone finds a way to break into the jailed process.
This is used to feed some hairy exploit to the unjailed
process that expects "clean" data from the jailed process.
Same as before, only now they need a two-stage exploit.
You can jail a process doing a "dangerous" job, but you can't
really jail a "hairy" data stream. Not if data is expected to
emerge from the jail someday.
Helge Hafting
next prev parent reply other threads:[~2004-11-30 12:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-29 11:43 [RFC] relinquish_fs() syscall Mitchell Blank Jr
2004-11-29 11:51 ` Alan Cox
2004-11-29 13:55 ` Mitchell Blank Jr
2004-11-29 15:17 ` Alan Cox
2004-11-30 13:27 ` Mitchell Blank Jr
2004-11-30 13:44 ` Arjan van de Ven
2004-11-30 14:12 ` Mitchell Blank Jr
2004-11-30 13:43 ` Alan Cox
2004-12-05 0:14 ` Rob Landley
2004-11-30 12:29 ` Helge Hafting [this message]
2004-11-30 13:48 ` Mitchell Blank Jr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41AC67B2.6010601@hist.no \
--to=helge.hafting@hist.no \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mitch@sfgoth.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox