Skip to contentSkip to conversation

I've written a shell script which turns log deny to allow.

DISCUSSION shintarou_fujiwara 2 participants 3 messages Oct 5, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hello, again from Japan .

The other day I've written a policy, noip but
today I've written a script , easy to use especially begginers, like me ...

Denied log is so annoying , so I've written down this small script named sepolf (selinux policy finder).

I really want it to display macro, but all I can do now is to display allow... like audit2allow (I have never used,though).

Experts advice I really want to get ,to make it better.

Thanks. Bye.

shintarou_fujiwara

#1 lore raw
Quoted 6 lines · shintarou_fujiwara

Hello, again from Japan .

The other day I've written a policy, noip but today I've written a script , easy to use especially begginers, like me ...

Quoted 7 lines

Denied log is so annoying , so I've written down this small script named sepolf (selinux policy finder).

I really want it to display macro, but all I can do now is to display allow... like audit2allow (I have never used,though).

Experts advice I really want to get ,to make it better.

How does it differ from audit2allow? If you think audit2allow lacks something, feel free to propose a patch to it.

If you are interested in more sophisticated policy generation, I'd suggest that you take a look at polgen. There should be an updated release of it soon, but you can look at the polgen 1.1 release from
http://www.mitre.org/tech/selinux/. Unlike audit2allow, polgen can generate new domains and types, recognize patterns and suggest appropriate policy, and emit macro-based rules rather than just raw TE rules. Note that polgen uses filtered strace output (extended to include security contexts) from running the program rather than audit messages as its input. This has advantages (e.g. program-specific data, more detailed data than one can currently obtain from audit messages) and disadvantages (e.g. weak linkage with actual SELinux permission checks, lack of data on other processes interacting with the program, dependency on patched strace program - which is included in the polgen tarball).

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw

To Mr Stephen Smalley:

Thank you very much letting me know more sophisticated policy generator.
I did not know polgen . The idea is great. That's exactly what I want to do.

I will check the web page.

Thanks.
Bye.

----- Original Message ----- From: "Stephen Smalley" <[email protected]>
To: "shintarou_fujiwara" <[email protected]>
Cc: "John Ramsdell" <[email protected]>; "Brian T. Sniffen" <[email protected]>; "selinux mailing list" <[email protected]>
Sent: Wednesday, October 05, 2005 11:30 PM
Subject: Re: I've written a shell script which turns log deny to allow.

Quoted 18 lines · shintarou_fujiwara
Quoted 6 lines

Hello, again from Japan .

The other day I've written a policy, noip but today I've written a script , easy to use especially begginers, like me ...

Quoted 7 lines

Denied log is so annoying , so I've written down this small script named sepolf (selinux policy finder).

I really want it to display macro, but all I can do now is to display allow... like audit2allow (I have never used,though).

Experts advice I really want to get ,to make it better.

How does it differ from audit2allow? If you think audit2allow lacks something, feel free to propose a patch to it.

Quoted 25 lines

If you are interested in more sophisticated policy generation, I'd suggest that you take a look at polgen. There should be an updated release of it soon, but you can look at the polgen 1.1 release from
http://www.mitre.org/tech/selinux/. Unlike audit2allow, polgen can generate new domains and types, recognize patterns and suggest appropriate policy, and emit macro-based rules rather than just raw TE rules. Note that polgen uses filtered strace output (extended to include security contexts) from running the program rather than audit messages as its input. This has advantages (e.g. program-specific data, more detailed data than one can currently obtain from audit messages) and disadvantages (e.g. weak linkage with actual SELinux permission checks, lack of data on other processes interacting with the program, dependency on patched strace program - which is included in the polgen tarball).

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.