SELinux Question

Daniel J Walsh dwalsh at redhat.com
Fri Nov 20 21:41:22 UTC 2009


On 11/20/2009 04:05 PM, Phil Savoie wrote:
> Hi All,
> 
> Is there a command to list all selinux context types.  semanage fcontext
> -l only lists those currently in the database but not say ...
> public_content_rw_t which is used for the ftpd and is listed in the man
> pages for it.
> 
> How do I get a combined listing of the ones used and not currently used
> but available?  I have found information under
> /etc/selinux/targeted/contexts that can be used but it's not in any easy
> command format and the information is in multiple files.
> 
> Thanks in advance,
> 
> Phil
> 

You can use seinfo for this type of query.  seinfo and sesearch are handy tools to query the policy

 seinfo -afile_type -x | wc
   1562    1562   34482




More information about the fedora-list mailing list