All of lore.kernel.org
 help / color / mirror / Atom feed
* missing avc message field names
@ 2007-01-29 14:10 Steve G
  2007-01-29 14:35 ` Stephen Smalley
  0 siblings, 1 reply; 48+ messages in thread
From: Steve G @ 2007-01-29 14:10 UTC (permalink / raw)
  To: selinux

Hi,

I am in the process of working on the audit parsing library. The specifications
for the parser have been posted for about a year:

http://people.redhat.com/sgrubb/audit/audit-parse.txt

In order to allow bindings in many programming languages, it was decided to
abstract much of the audit format and just present an opaque API that presents
the data as name/value pairs that can be iterated through. So far, everything is
working fine for all audit messages except AVCs. The reason being is that there
are fields in the record that do not have a name. For example:

type=AVC msg=audit(1169743468.302:3604): avc:  denied  { sys_resource } for 
pid=4002 comm="semodule" capability=24 scontext=system_u:system_r:semanage_t:s0
tcontext=system_u:system_r:semanage_t:s0 tclass=capability

The parser uses ' ' as the separator. So the 4th field is denied al by itself.
The 6th field is sys_resource all by itself. Currently the parser throws those
fields away because they do not follow the name=value convention. But I think
they are fields that we really want to keep.

Would anybody object to making these follow the name=value format?

If this is impossible, I can special-case AVCs and pick out the 4th and 6th
fields. But the API will follow name/value convention. So, what would everyone
want to call the 4th & 6th field's names?

Just an FYI, I am hoping to release the initial libauparse later this week. It
should have python bindings, too.

Thanks,
-Steve


 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

--
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] 48+ messages in thread

end of thread, other threads:[~2007-02-01 11:40 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-29 14:10 missing avc message field names Steve G
2007-01-29 14:35 ` Stephen Smalley
2007-01-29 14:58   ` Karl MacMillan
2007-01-29 15:13     ` Steve G
2007-01-29 15:09   ` Steve G
2007-01-29 15:13     ` Stephen Smalley
2007-01-29 17:27       ` Steve G
2007-01-29 18:32         ` Karl MacMillan
2007-01-29 18:39     ` Karl MacMillan
2007-01-29 18:55       ` Steve G
2007-01-29 19:22         ` Eamon Walsh
2007-01-29 19:22           ` Eamon Walsh
     [not found]           ` <45BE4971.6090601-+05T5uksL2qpZYMLLGbcSA@public.gmane.org>
2007-01-29 19:43             ` Karl MacMillan
2007-01-29 19:43               ` Karl MacMillan
2007-01-29 20:07               ` Eamon Walsh
2007-01-29 20:07                 ` Eamon Walsh
2007-01-29 20:56           ` Steve Grubb
2007-01-29 20:56             ` Steve Grubb
2007-01-29 21:16             ` Karl MacMillan
2007-01-29 21:16               ` Karl MacMillan
2007-01-29 22:49               ` Steve Grubb
2007-01-29 22:49                 ` Steve Grubb
2007-01-29 23:48                 ` Eamon Walsh
2007-01-29 23:48                   ` Eamon Walsh
     [not found]                   ` <45BE87E0.5090109-+05T5uksL2qpZYMLLGbcSA@public.gmane.org>
2007-01-30 12:25                     ` Russell Coker
2007-01-30 12:25                       ` Russell Coker
     [not found]                 ` <200701291749.21897.sgrubb-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2007-01-30 14:49                   ` Karl MacMillan
2007-01-30 14:49                     ` Karl MacMillan
2007-01-30 17:06                     ` Joshua Brindle
2007-01-30 17:06                       ` Joshua Brindle
2007-01-30 17:28                       ` Valdis.Kletnieks
2007-01-30 17:28                         ` Valdis.Kletnieks
2007-01-30 18:45                       ` Casey Schaufler
2007-01-30 18:45                         ` Casey Schaufler
2007-01-30 17:42                     ` Steve Grubb
2007-01-30 17:42                       ` Steve Grubb
2007-01-30 22:53                     ` James Antill
2007-01-30 22:53                       ` James Antill
     [not found]                       ` <1170197588.3373.28.camel-pBdgC7Q4sO52KDkfy0k2sw@public.gmane.org>
2007-01-31  0:50                         ` Karl MacMillan
2007-01-31  0:50                           ` Karl MacMillan
2007-01-31  5:29                           ` Joshua Brindle
2007-01-31  5:29                             ` Joshua Brindle
     [not found]                             ` <45C02948.9090607-5TQdPaFcblfQT0dZR+AlfA@public.gmane.org>
2007-01-31 22:59                               ` Russell Coker
2007-01-31 22:59                                 ` Russell Coker
2007-02-01 11:40                                 ` Steve Grubb
2007-02-01 11:40                                   ` Steve Grubb
2007-01-29 19:37         ` Stephen Smalley
2007-01-29 21:14           ` Steve G

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.