All of lore.kernel.org
 help / color / mirror / Atom feed
* I've written a shell script which turns log deny to allow.
@ 2005-10-05 14:04 shintarou_fujiwara
  2005-10-05 14:30 ` Stephen Smalley
  0 siblings, 1 reply; 3+ messages in thread
From: shintarou_fujiwara @ 2005-10-05 14:04 UTC (permalink / raw)
  To: selinux mailing list

[-- Attachment #1: Type: text/plain, Size: 473 bytes --]

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

[-- Attachment #2: sepolf_2.1.3.tar.gz --]
[-- Type: application/x-gzip, Size: 1102 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: I've written a shell script which turns log deny to allow.
  2005-10-05 14:04 I've written a shell script which turns log deny to allow shintarou_fujiwara
@ 2005-10-05 14:30 ` Stephen Smalley
  2005-10-05 21:04   ` shintarou_fujiwara
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Smalley @ 2005-10-05 14:30 UTC (permalink / raw)
  To: shintarou_fujiwara; +Cc: John Ramsdell, Brian T. Sniffen, selinux mailing list

On Wed, 2005-10-05 at 23:04 +0900, shintarou_fujiwara wrote:
> 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.

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).

-- 
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: I've written a shell script which turns log deny to allow.
  2005-10-05 14:30 ` Stephen Smalley
@ 2005-10-05 21:04   ` shintarou_fujiwara
  0 siblings, 0 replies; 3+ messages in thread
From: shintarou_fujiwara @ 2005-10-05 21:04 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: selinux mailing list

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" <sds@tycho.nsa.gov>
To: "shintarou_fujiwara" <shin216@xf7.so-net.ne.jp>
Cc: "John Ramsdell" <ramsdell@mitre.org>; "Brian T. Sniffen" 
<bsniffen@mitre.org>; "selinux mailing list" <selinux@tycho.nsa.gov>
Sent: Wednesday, October 05, 2005 11:30 PM
Subject: Re: I've written a shell script which turns log deny to allow.


> On Wed, 2005-10-05 at 23:04 +0900, shintarou_fujiwara wrote:
>> 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.
>
> 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).
>
> -- 
> 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 majordomo@tycho.nsa.gov 
> 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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-05 21:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-05 14:04 I've written a shell script which turns log deny to allow shintarou_fujiwara
2005-10-05 14:30 ` Stephen Smalley
2005-10-05 21:04   ` shintarou_fujiwara

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.