From: Ville Herva <vherva@niksula.hut.fi>
To: linux-kernel@vger.kernel.org
Subject: Re: more thoughts on a new jail() system call
Date: Fri, 19 Jul 2002 10:46:30 +0300 [thread overview]
Message-ID: <20020719074629.GD1548@niksula.cs.hut.fi> (raw)
In-Reply-To: <ah7m2r$3cr$1@abraham.cs.berkeley.edu>
On Fri, Jul 19, 2002 at 12:21:47AM +0000, you [David Wagner] wrote:
> Shaya Potter wrote:
> >sys_mknod) J - Need FIFO ability, everything else not.
>
> Beware the ability to pass file descriptors across Unix
> domain sockets. This should probably be restricted somehow.
> Along similar lines, you didn't mention sendmsg() and
> recvmsg(), but the fd-passing parts should probably be
> restricted.
I gather FreeBSD allow passing fd's, but not in or out the jail. Just inside
it.
> >sys_setuid16) ^J - since jail is secure, can setuid all you want.
>
> I'd look very carefully at whether root can bypass any
> of the access controls you're relying on. For instance,
> with root, one can bind to ports below 1024.
In FreeBSD jail, jailed root is supposed to be safe. So if something is
jailed - and has the necessary privileges - it can bind to the jail ip (each
jail has its own ip). But it can't bind to any other ip's of the box.
http://docs.freebsd.org/44doc/papers/jail/jail-6.html#section10
> >sys_socketcall) J - Bind seems to be the only problem. jail() includes
> >an ip address, and a jailed process can only bind to that address. so
> >do we force the addr to be this address, or does one allow INADDR_ANY
> >and translate that to the jail'd ip address?
In FreeBSD, INADDR_ANY is explicitly translated to jail's IP. Many daemons
use INADDR_ANY routinely, so I think it makes sense.
> >sys_syslog) NOT SURE (probably jailed away)
>
> sys_syslog touches a global shared resource, hence
> should probably be denied to jailed processes.
Ummh, most logical way would be to create an own syslog for each jail.
That's also the most laborous alternative, though...
-- v --
v@iki.fi
next prev parent reply other threads:[~2002-07-19 7:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-18 2:26 Shaya Potter
2002-07-18 2:30 ` Shaya Potter
2002-07-19 0:21 ` David Wagner
2002-07-19 2:08 ` Thunder from the hill
2002-07-19 4:18 ` James Antill
2002-07-19 4:55 ` Thunder from the hill
2002-07-19 7:48 ` James Antill
2002-07-19 3:06 ` Albert D. Cahalan
2002-07-19 3:23 ` David Wagner
2002-07-19 16:35 ` Shaya Potter
2002-07-19 21:10 ` Shaya Potter
2002-07-19 7:46 ` Ville Herva [this message]
2002-07-19 16:24 ` Shaya Potter
2002-07-19 16:34 ` Shaya Potter
2002-07-19 22:48 ` Shaya Potter
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=20020719074629.GD1548@niksula.cs.hut.fi \
--to=vherva@niksula.hut.fi \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®