From: Joshua Brindle <method@manicmethod.com>
To: Karl MacMillan <kmacmillan@mentalrootkit.com>
Cc: Stephen Smalley <sds@tycho.nsa.gov>,
Yuichi Nakamura <ynakam@hitachisoft.jp>,
selinux@tycho.nsa.gov, busybox@kaigai.gr.jp,
Eric Paris <eparis@parisplace.org>
Subject: Re: [patch] reducing size of libselnux/libsepol for embedded
Date: Tue, 10 Apr 2007 20:22:11 -0400 [thread overview]
Message-ID: <461C2A33.6060707@manicmethod.com> (raw)
In-Reply-To: <1176234465.32661.1.camel@localhost.localdomain>
Karl MacMillan wrote:
> On Tue, 2007-04-10 at 15:31 -0400, Stephen Smalley wrote:
>
>> On Tue, 2007-04-10 at 12:50 -0400, Stephen Smalley wrote:
>>
>
>
>>> Possibly the patch should selectively filter out objects from LOBJS
>>> (i.e. the shared library) while leaving them all in OBJS (i.e. the
>>> static library). Then you could build a smaller shared libsepol.so
>>> library for installation on the embedded device that would only be used
>>> for e.g. boolean preservation, while still having the full static
>>> libsepol.a library on the build host for compiling checkpolicy and other
>>> users of the static library. I think they are just trying to allow for
>>> boolean preservation without pulling in all of libsepol.
>>>
Even given the below fix I like this idea, since the static lib need not
be present on any production device this should solve the embedded size.
For example, even on a managed device there may be no need for the
security server code. One thing that worries me about having so many
configurations of the library is that when bug reports come in it may be
difficult to find out how the library was built. Perhaps we should add
build information into the library that can be printed out with sestatus?
>> Another option would be to "fix" the kernel to preserve booleans
>> atomically across policy reloads. Which would eliminate the need for
>> sepol_genbools_array altogether at policy load, and solve some other
>> problems, e.g. try running load_policy in a loop and then start another
>> loop that also runs load_policy, and they'll collide pretty fast (one of
>> them will end up trying to read an invalidated /selinux/booleans node
>> from the other's reload).
>>
>>
>
> I like this idea. Of course, it would mean that permanent boolean
> changes would either require managed policy or a policy recompile, which
> is likely acceptable.
>
>
I like it too. Permanent boolean changes already require managed policy
or a policy recompile in trunk (due to removal of setlocaldefs support)
so there is a good chance that noone will notice :)
Also, AFAIK libselinux only depends on libsepol for the boolean stuff so
libsepol will no longer be necessary on unmanaged machines with no
policy compiler, this is good.
--
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-04-11 0:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-09 4:50 [patch] reducing size of libselnux/libsepol for embedded Yuichi Nakamura
2007-04-09 12:34 ` Joshua Brindle
2007-04-09 13:27 ` Stephen Smalley
2007-04-09 14:44 ` Stephen Smalley
2007-04-10 1:09 ` Yuichi Nakamura
2007-04-10 15:27 ` Joshua Brindle
2007-04-10 16:50 ` Stephen Smalley
2007-04-10 19:31 ` Stephen Smalley
2007-04-10 19:47 ` Karl MacMillan
2007-04-11 0:22 ` Joshua Brindle [this message]
2007-04-11 15:29 ` Yuichi Nakamura
2007-04-10 1:05 ` Yuichi Nakamura
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=461C2A33.6060707@manicmethod.com \
--to=method@manicmethod.com \
--cc=busybox@kaigai.gr.jp \
--cc=eparis@parisplace.org \
--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.