From: antoine <antoine@nagafix.co.uk>
To: Blaisorblade <blaisorblade@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: SELinux for UML (was: Re: [uml-devel] 2.6.12-rc6-mm1 patches testing)
Date: Thu, 09 Jun 2005 20:19:45 +0100 [thread overview]
Message-ID: <1118344785.10190.141.camel@localhost> (raw)
In-Reply-To: <200506092026.24469.blaisorblade@yahoo.it>
> > > > Yep, that part is much more specific to my setup: the place where you
> > > > install the UML instances is not part of the LSB, so I didn't include
> > > > the file labels in the previous email. What is the consensus on where
> > > > UML should be installed on a production system? (assuming multiple
> > > > instances + possibility of a chroot)
> > >
> > > There is no consensus, so that should be parametrized somehow (if
> > > policies don't have a builtin preprocessor, then sed is a good last
> > > resort - put the parameters inside %%, like %UML_ROOT_FS_PATH%, and use
> > > sed on that to produce the policy).
>
> > It allows basic regular expressions with '.','*','?','+' and grouping
> > '()'.
> > I'm not too keen on sed because this would prevent the policy from being
> > merged upstream.
> Hmm, so there is a central repository of policies...
http://selinux.sourceforge.net/
Here is an interesting email I just received:
(it is about type enforcements .te but I expect the same principle to
apply to file contexts .fc)
******CUT
> > Generally
> > speaking, how do you maintain local customisations of the core policies?
>
> No good answer yet. There is presently support for local customization
> of boolean settings, file contexts, and users (at least in Fedora)
> without needing to touch policy sources. For tweaks to .te rules, a
> common convention is to create domains/misc/local.te or
> domains/misc/custom.te. The loadable module support that is in the
> process of being upstreamed will allow for well-defined policy modules
> with explicitly declared dependencies so you can define your own module
> without disturbing the base one provided by your distributor, but I
> think that support still only addresses the RBAC and TE rules, not
> things like network contexts. The MLS work will require the ability to
> do site customization of netif contexts, so we'll likely have to add
> similar support to libsepol for local customizations there as we have
> already done for booleans and users. That works by loading in the
> binary policy file into memory, loading in the local customization
> config files, mutating the in-memory policy image accordingly, and then
> loading the resulting policy image into the kernel.
******CUT
> > Maybe now is a good time to choose a directory by default and users who
> > deviate can use softlinks or tweak their policy.
> Hmm, well, who uses SELinux will have to setup things anyway, so they can even
> move their files around. Assuming there will be a chroot too, using /chroot
> (which is mandated by Who Knows Who, but is used on Gentoo for the dhcp
> daemon) or better /chroot/uml would be good.
>
> However, would a chroot work with SELinux or do you need to put the
> "chrooting" also in the policy?
Well, I tried to define generic policies for my chrooted services when I
migrated them to selinux, but there are issues.
I'm looking into it.
> Btw, I really need to allow UML to chroot on its own, btw... and options for
> changing UID/GID after setup...
That would be very nice.
I'll keep you posted as I learn more about SELinux and how to make UML
run smoothly in a chrooted/selinux environment.
Antoine
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2005-06-09 19:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-09 1:25 [uml-devel] 2.6.12-rc6-mm1 patches testing antoine
2005-06-09 15:24 ` Blaisorblade
2005-06-09 15:56 ` antoine
2005-06-09 17:20 ` Blaisorblade
2005-06-09 17:52 ` antoine
2005-06-09 18:26 ` SELinux for UML (was: Re: [uml-devel] 2.6.12-rc6-mm1 patches testing) Blaisorblade
2005-06-09 19:19 ` antoine [this message]
2005-06-09 18:04 ` [uml-devel] 2.6.12-rc6-mm1 patches testing antoine
2005-06-09 19:45 ` Stephen Smalley
2005-06-09 22:57 ` Blaisorblade
2005-06-10 13:35 ` Stephen Smalley
2005-06-09 16:31 ` antoine
2005-06-09 16:53 ` antoine
2005-06-09 17:17 ` Blaisorblade
2005-06-09 19:23 ` antoine
2005-06-09 23:28 ` Blaisorblade
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=1118344785.10190.141.camel@localhost \
--to=antoine@nagafix.co.uk \
--cc=blaisorblade@yahoo.it \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.