[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: selinux prelink avc's (broken paths in policy?)
- From: Christopher Ashworth <cashworth tresys com>
- To: Paul Howarth <paul city-fan org>
- Cc: Daniel J Walsh <dwalsh redhat com>, fedora-selinux-list redhat com
- Subject: Re: selinux prelink avc's (broken paths in policy?)
- Date: Thu, 25 May 2006 11:49:22 -0400
On Wed, 2006-05-24 at 12:56 -0400, Christopher Ashworth wrote:
> On Wed, 2006-05-24 at 16:38 +0100, Paul Howarth wrote:
> > So if "semanage fcontext -l" doesn't produce an ordered listing, is
> > there any way from userland to get one, one that encompasses both the
> > base policy and any added modules or context objects added using semanage?
>
> I don't know the definitive answer on a userland tool. semanage
> fcontext -l appears to just be calling libsemanage, which is in turn
> using Ivan's database functions to list the objects (in this case, the
> fcontext objects). I'll try to track down what happens between the
> file_contexts file and the listing.
I had a chance to take another look at this this morning.
In semanage (seobject.py, specifically), the list of file contexts being
retrieved via semanage_fcontext_list is in the correct order. However,
it is transfered to a dictionary and printed out by iterating over the
keys of the dictionary.
Changing this will allow semanage to report the file contexts in the
original order.
Christopher
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]