All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: SE Linux <selinux@tycho.nsa.gov>
Subject: Re: secon (Was: Policycoreutils patch)
Date: Mon, 08 May 2006 12:13:44 -0400	[thread overview]
Message-ID: <445F6E38.7070707@redhat.com> (raw)
In-Reply-To: <1147100068.23640.53.camel@moss-spartans.epoch.ncsc.mil>

Stephen Smalley wrote:
> On Fri, 2006-05-05 at 16:39 -0400, Daniel J Walsh wrote:
>   
>> Broken audit2allow into two packages including avc.py so that other 
>> tools can use it.
>>
>> Began adding code to allow it to analyze AVC message and use plugin 
>> architecture to translate avc messages.
>>
>> Internationailization code added.
>>
>> Some po files translated.
>>
>> Fixes for semanage
>>
>> Cleanup of code
>>     
>
> What is the purpose of the secon utility added by this patch?
>   
The idea is to be able to use utility within bash to show what role/type 
you are in at the prompt.
James Antill built it and is experimenting with some other features.  We 
could obviously do this with python bindings, but wanted something light 
weight to handle MLS type situations.
> Assuming that it is useful, a few quick comments on the implementation:
> - The my_getXcon_raw functions should be moved into libselinux (without
> the my_ prefix, of course) so that we don't need any code outside of
> libselinux directly reading /proc/pid/attr files.
> - Falling back to the current context when the exec or fscreate context
> is not set is not correct.  Absence of exec or fscreate context just
> means that the default policy behavior (e.g. type_transition or default
> inheritance) will be applied.  While default inheritance would mean that
> the current context is applied for exec, there could be a
> type_transition, and it makes no sense at all for fscreate (where
> default inheritance combines information from the current context with
> the parent directory context).  I think you just want to report NULL /
> none or similar to the user.
> - The call to selinux_trans_to_raw_context() doesn't make sense since
> you are already calling the _raw functions.  If opt->disp_raw is set,
> then no further processing should be required, right?
>
>   
I have passed on your comments and we will get out a patch.


--
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.

  reply	other threads:[~2006-05-08 16:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <445BB803.4050409@redhat.com>
2006-05-08 14:54 ` secon (Was: Policycoreutils patch) Stephen Smalley
2006-05-08 16:13   ` Daniel J Walsh [this message]
2006-05-08 20:44 James Antill
     [not found] ` <1148330873.24463.139.camel@moss-spartans.epoch.ncsc.mil>
     [not found]   ` <1148332107.29408.2.camel@code.and.org>
     [not found]     ` <1148388875.24463.152.camel@moss-spartans.epoch.ncsc.mil>
2006-05-25 21:25       ` James Antill

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=445F6E38.7070707@redhat.com \
    --to=dwalsh@redhat.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.