From: "Christopher J. PeBenito" <cpebenito@tresys.com>
To: Karl MacMillan <kmacmillan@mentalrootkit.com>
Cc: Stephen Smalley <sds@tycho.nsa.gov>,
Yuichi Nakamura <ynakam@hitachisoft.jp>,
busybox@kaigai.gr.jp, selinux@tycho.nsa.gov,
Chad Sellers <csellers@tresys.com>
Subject: Re: Separating libselinux/libsepol (Was: Re: BusyBox: load_policy applet)
Date: Mon, 26 Mar 2007 20:13:01 +0000 [thread overview]
Message-ID: <1174939981.28830.84.camel@sgc> (raw)
In-Reply-To: <1174927054.12204.45.camel@localhost.localdomain>
On Mon, 2007-03-26 at 12:37 -0400, Karl MacMillan wrote:
> On Mon, 2007-03-26 at 12:12 -0400, Christopher J. PeBenito wrote:
> > On Mon, 2007-03-26 at 10:08 -0400, Stephen Smalley wrote:
> > > On Mon, 2007-03-26 at 10:28 +0900, Yuichi Nakamura wrote:
> > > > On Fri, 23 Mar 2007 08:49:37 -0400
> > > > Stephen Smalley wrote:
> > > > > On Fri, 2007-03-23 at 15:15 +0900, Yuichi Nakamura wrote:
> > > > > > Attached patch is to support load_policy for BusyBox.
> > > > > > load_policy is a program to load SELinux policy to kernel.
> > > > > > This applet is very important for SELinux,
> > > > > > because SELinux is not activated until policy is loaded.
> > > > > >
> > > > > > And this applet is _not_ based on latest load_policy,
> > > > > > is based on old load_policy.
> > > > > > This is because the size of latest load_policy is bigger than old one,
> > > > > > and old load_policy has enough feature for embedded device.
> >
> > > I wanted to discuss further your proposal to "separate" libsepol from
> > > libselinux (i.e. provide a build option for libselinux to allow building
> > > it without selinux_mkload_policy() and thus without a dependency on
> > > libsepol, IIUC).
> > >
> > > I have a couple of concerns with that proposal:
> > [...]
> > > I'd also like to find out what you think about libsemanage and
> > > managed/modular policy in embedded environments, as mainstream selinux
> > > has migrated to using them entirely and we are considering dropping
> > > support for the old way of dealing with booleans and local users from
> > > libsepol and libselinux (see my prior [RFC] Drop setlocaldefs support
> > > from trunk posting on Feb 22). That would require use of libsemanage
> > > and managed policy going forward for boolean manipulation, so if that is
> > > a problem for embedded, we need to know now. And even if you think they
> > > are too heavy presently, we want to work toward enabling use of managed
> > > policy in those environments, so it would make sense to work on
> > > optimizing the size of libsemanage (or providing a build option for a
> > > cut-down version of it) and the size of the policy module store further
> > > (some improvements like removing the previous copy and linked policy
> > > file were already made, but others like bzip2 support and removing files
> > > from the module store after installation haven't yet been done, at least
> > > not completely - there are some RFC patches floating around).
> >
> > I'm not involved in what Yuichi and KaiGai are doing, so I can't speak
> > to their goals, but I figured I'd put in my $0.02. The setup that I
> > have originated pre selinux-enabled busybox and pre managed policy
> > (example policy based). I basically took busybox, libselinux (including
> > the util programs), policycoreutils (the C code pieces) and my
> > application, and jammed it into a little more than 8MB including the
> > kernel.
> >
> > In my personal opinion, if you are really going tiny, that means its a
> > customized system, which includes customized policy. That means you
> > should be setting the correct initial boolean values when you build the
> > policy, which also means monolithic instead of modular.
>
> What if the booleans are used to represent runtime state, for example
> different security settings when a PDA is docked as opposed to undocked?
> In that case there is no reasonable default and not preserving the
> current values could cause serious problems.
I disagree. The correct answer is whichever state the device assumes
when it powers up. PDAs already have to determine that type of state
when they power up after the initial setup, so at that time when it
determines the state, it can also set the boolean.
--
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2007-03-26 20:13 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-23 6:15 BusyBox: load_policy applet Yuichi Nakamura
2007-03-23 12:49 ` Stephen Smalley
2007-03-26 1:28 ` Yuichi Nakamura
2007-03-26 14:08 ` Separating libselinux/libsepol (Was: Re: BusyBox: load_policy applet) Stephen Smalley
2007-03-26 16:12 ` Christopher J. PeBenito
2007-03-26 16:35 ` Stephen Smalley
2007-03-27 0:59 ` Yuichi Nakamura
2007-03-27 12:15 ` Stephen Smalley
2007-03-28 1:57 ` KaiGai Kohei
2007-03-28 8:40 ` Yuichi Nakamura
2007-03-28 9:12 ` [busybox:00575] " KaiGai Kohei
2007-03-28 12:04 ` Stephen Smalley
2007-03-28 12:34 ` Joshua Brindle
2007-03-28 12:00 ` Stephen Smalley
2007-03-28 2:19 ` Yuichi Nakamura
2007-03-27 2:58 ` Ryan Bradetich
2007-03-27 12:32 ` Christopher J. PeBenito
2007-03-26 16:37 ` Karl MacMillan
2007-03-26 20:13 ` Christopher J. PeBenito [this message]
2007-03-27 12:45 ` Stephen Smalley
2007-03-27 15:42 ` Christopher J. PeBenito
2007-03-27 15:48 ` Stephen Smalley
2007-03-27 16:02 ` Karl MacMillan
2007-03-27 18:43 ` Christopher J. PeBenito
2007-03-27 18:47 ` Stephen Smalley
2007-03-27 19:09 ` Karl MacMillan
2007-03-27 19:32 ` Christopher J. PeBenito
2007-03-27 20:31 ` Ryan Bradetich
2007-03-28 10:26 ` Russell Coker
2007-03-28 12:06 ` Stephen Smalley
2007-03-28 14:11 ` Russell Coker
2007-03-28 12:17 ` Christopher J. PeBenito
2007-03-27 20:14 ` Ryan Bradetich
2007-03-27 20:35 ` Joshua Brindle
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=1174939981.28830.84.camel@sgc \
--to=cpebenito@tresys.com \
--cc=busybox@kaigai.gr.jp \
--cc=csellers@tresys.com \
--cc=kmacmillan@mentalrootkit.com \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=ynakam@hitachisoft.jp \
/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.