How to extract file context patterns from selinux module

Marcos Luis Ortiz Valmaseda marcosluis2186 at googlemail.com
Fri Jul 29 15:12:42 UTC 2011


Well, you have two options:
- You can use the system-config-selinux (SELinux Management GUI Tool) which
is part of the policycoreutils-gui package
- Or you can use Eclipse SLIDE to do this:
http://oss.tresys.com/projects/slide, if you use Fedora 15, you can install
it with yum install eclipse-slide

Regards

2011/7/29 Karel Srot <ksrot at redhat.com>

> Hi,
> could you please help me with following problem?
> I would like to extract context patterns from a selinux module.
> I know there are placed at the end of the module but I don't know (and
> didn't find) the module structure. Therefore I don't know how to parse
> them (if there are any in the module).
>
> Thank you in advance
> Karel Srot
>
> $ tail abrt.pp
> var/cache/abrt-di(/.*)?         system_u:object_r:abrt_var_cache_t:s0
> /var/log/abrt-logger            --      system_u:object_r:abrt_var_log_t:s0
> /var/run/abrt\.pid                      --
>  system_u:object_r:abrt_var_run_t:s0
> /var/run/abrtd?\.lock           --      system_u:object_r:abrt_var_run_t:s0
> /var/run/abrtd?\.socket         -s  system_u:object_r:abrt_var_run_t:s0
> /var/run/abrt(/.*)?             system_u:object_r:abrt_var_run_t:s0
> ...
>
>
> Karel
>
> --
> Karel Srot
> QE BaseOS team
> http://intranet.corp.redhat.com/ic/intranet/KarelSrot
>
> Email: ksrot at redhat.com
> Web: www.cz.redhat.com
> Red Hat Czech s.r.o., Purkyňova 99/71, 612 45, Brno, Czech Republic
>
> --
> selinux mailing list
> selinux at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/selinux




-- 
-- 
Marcos Luis Ortíz Valmaseda
 Software Engineer (UCI)
 Linux User # 418229
 http://marcosluis2186.posterous.com
 http://www.linkedin.com/in/marcosluis2186
 https://fedoraproject.org/wiki/User:Marcosluis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/selinux/attachments/20110729/e8ad159f/attachment.html 


More information about the selinux mailing list