From: Chris Wright <chrisw@osdl.org>
To: Rik van Riel <riel@redhat.com>
Cc: Chris Wright <chrisw@osdl.org>,
torvalds@osdl.org, greg@kroah.com, linux-kernel@vger.kernel.org
Subject: Re: sys_vserver
Date: Wed, 1 Oct 2003 12:15:36 -0700 [thread overview]
Message-ID: <20031001121536.J14398@osdlab.pdx.osdl.net> (raw)
In-Reply-To: <Pine.LNX.4.44.0310011454530.19538-100000@chimarrao.boston.redhat.com>; from riel@redhat.com on Wed, Oct 01, 2003 at 02:58:43PM -0400
* Rik van Riel (riel@redhat.com) wrote:
> On Wed, 1 Oct 2003, Chris Wright wrote:
>
> > Multiplexing, future functionality, etc...this reasoning was shot down
> > before. The preferred method was to have well-typed interfaces that
> > are simple and not overloaded. Any chance some of these needs could be
> > met with existing infrastructure in 2.6? For example, similar to the
> > sys_new_s_context issue was resolved for LSM with the /proc/pid/attr/
> > interface, could this be reused?
>
> OK, a few comments here:
>
> 1) the vserver functionality definately is not "future functionality",
> people have been using it in production for a few years already
Sorry, I don't mean to imply core vserver is all new, just reacting to
one of the justifciations being "people are planning future
functionality."
> 2) currently vserver only runs on 2.4 (and I think 2.2), it hasn't
> been ported to 2.6 yet and I definately plan to port it in such
> a way that we will be reusing other infrastructure whereever
> possible ... it's just that vserver needs some infrastructure
> that is not possible inside LSM
>
> 3) the needs that can be met with existing infrastructure, like
> CLONE_NEWNS or LSM should definately move out of the vserver
> patch in the port to 2.6
Glad to hear it. I haven't looked closely at vserver since about 2.4.14,
but I had hoped to find ways to minimize the vserver patch by reusing
some of the LSM infrastructure. The biggest issue was the ability to
virtualize the results of something like the hostname to be ctx
specific, which was deemed too much to do for the LSM interfaces.
> 4) I'm all for generalising the interface, how about sys_virtual_context ?
I _think_ this can be done with /proc/[pid]/attr/. This allows you to
set the security attributes of a process. IIRC, the sys_s_new_context
was something helpers would run before execve'ing a process into the new
context (sorry if my details are off). Same can be acheived with
/proc/[pid]/attr/exec, but writing the new context to that file, then
execve'ing. Here's a link with more details on the API:
http://mail.wirex.com/pipermail/linux-security-module/2003-April/4264.html
thanks,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
next prev parent reply other threads:[~2003-10-01 19:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-01 18:51 sys_vserver Chris Wright
2003-10-01 18:58 ` sys_vserver Rik van Riel
2003-10-01 19:15 ` Chris Wright [this message]
2003-10-01 19:21 ` sys_vserver Rik van Riel
2003-10-01 19:47 ` sys_vserver Herbert Poetzl
2003-10-01 21:16 ` sys_vserver Chris Wright
2003-10-01 21:44 ` sys_vserver Rik van Riel
2003-10-01 22:57 ` sys_vserver James Morris
2003-10-01 23:14 ` sys_vserver Chris Wright
2003-10-01 23:17 ` sys_vserver Rik van Riel
2003-10-01 23:32 ` sys_vserver Chris Wright
2003-10-01 23:22 ` sys_vserver Linus Torvalds
2003-10-01 23:28 ` sys_vserver Rik van Riel
2003-10-01 22:52 ` [vserver] sys_vserver Herbert Poetzl
2003-10-01 23:05 ` Chris Wright
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=20031001121536.J14398@osdlab.pdx.osdl.net \
--to=chrisw@osdl.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=riel@redhat.com \
--cc=torvalds@osdl.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®