Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora SELinux Support (http://www.linux-archive.org/fedora-selinux-support/)
-   -   How to extract file context patterns from selinux module (http://www.linux-archive.org/fedora-selinux-support/558332-how-extract-file-context-patterns-selinux-module.html)

Karel Srot 07-29-2011 12:03 PM

How to extract file context patterns from selinux module
 
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@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@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/selinux

Marcos Luis Ortiz Valmaseda 07-29-2011 03:12 PM

How to extract file context patterns from selinux module
 
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@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@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@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


--
selinux mailing list
selinux@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/selinux


All times are GMT. The time now is 10:36 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.