From: Joshua Brindle <jbrindle@tresys.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: "Christopher J. PeBenito" <cpebenito@tresys.com>,
SELinux Mail List <selinux@tycho.nsa.gov>
Subject: Re: [RFC] semodule policy
Date: Thu, 16 Feb 2006 16:09:08 -0500 [thread overview]
Message-ID: <43F4E9F4.7030106@tresys.com> (raw)
In-Reply-To: <1140123490.12655.183.camel@moss-spartans.epoch.ncsc.mil>
Stephen Smalley wrote:
> On Thu, 2006-02-16 at 14:28 -0500, Christopher J. PeBenito wrote:
>> I agree with Joshua, my current idea would be a .fc like (abbreviated):
>>
>> modules -d selinux_config_t
>> modules/(active|previous|tmp)(/.*)? semodule_store_t
>> modules/semanage.read.LOCK -- semodule_read_lock_t
>> modules/semanage.trans.LOCK -- semodule_trans_lock_t
>
> Will libsemanage be modified to set and preserve the type on the lock
> files?
Assuming that the semodule policy isn't present at initialization time
(bootstrap) the module store will have to be relabeled anyway. I could
add matchpathcon requests to create_store but I'm unsure if it will be
helpful.
> How will it obtain the correct type for the lock files in the
> bootstrap case where there is no file_contexts yet?
right, the problem I'm avoiding by not handling it in libsemanage :)
> It would be easier
> if they lived in separate subdirectories so that we could just use
> directory inheritance, as with the installed kernel binary policy file
> and the installed file_contexts file.
the locks aren't ever deleted after creation (although if they are
deleted it shouldn't cause problems), a single file per directory is
kind of broken but I see why it might be helpful
> Top-level files
> in /etc/selinux/$SELINUXTYPE have the same issue, like seusers and
> setrans.conf, if we ever want them individually typed. selinux_config_t
> tends to be widely readable.
>
>> Then semodule_t would have a dir type_transition on selinux_config_t.
>> Then the rest of semodule_t policy should hopefully fall in place.
>
> Should the domain be semanage_t to reflect use of libsemanage, and put
> all three of semodule, setsebool, and semanage into it?
probably. The other issue is that semanage/semodule/setsebool needs to
run in the user context in the policy server case so that policy access
control is done against their domain. I guess this will be a boolean/tunable
>
>> As for /usr/share/selinux/$NAME/*.pp, I agree that they should have a
>> different label, but I'm not sure they should be policy_config_t.
>>
>> [1] http://marc.theaimsgroup.com/?l=selinux&m=113992576831596&w=2
>
> Likely should add a new type for them. Then we can possibly create
> pipelines from their type to the store files via the approved programs.
>
sure.
--
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:[~2006-02-16 21:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-16 19:28 [RFC] semodule policy Christopher J. PeBenito
2006-02-16 20:58 ` Stephen Smalley
2006-02-16 21:09 ` Joshua Brindle [this message]
2006-02-16 21:11 ` Stephen Smalley
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=43F4E9F4.7030106@tresys.com \
--to=jbrindle@tresys.com \
--cc=cpebenito@tresys.com \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
/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.