public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
* [PATCH] auparse: apparmor fields
@ 2012-02-17 12:42 Marcelo Cerri
  2012-02-20 14:17 ` [PATCH v2] " Marcelo Cerri
  2012-02-20 15:09 ` [PATCH] " Eric Paris
  0 siblings, 2 replies; 5+ messages in thread
From: Marcelo Cerri @ 2012-02-17 12:42 UTC (permalink / raw)
  To: linux-audit; +Cc: gcwilson, bryntcor

Hi,

I'm taking a look at the AVC records generated by apparmor and some fields in
these records, such as "apparmor" and "operation", are quoted and are not listed
in the auparse/typetab.h file.

Searching in the kernel source, I've found the piece of code that generates the
AVC records and I noticed that it uses the function audit_log_string, which
just add quotes to the string, instead of audit_log_untrustedstring, which seems
to be targeted to escaped fields.

I'd like to know if these fields should be treated the same way as escaped
fields by libauparse or maybe it should be changed in the kernel.

If libauparse really needs to be changed, please consider this patch that
includes the fields "apparmor" and "operation" in the file auparse/typetab.h as
escaped fields.

Regards,
Marcelo
---
 auparse/typetab.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/auparse/typetab.h b/auparse/typetab.h
index 7838c17..0a81e25 100644
--- a/auparse/typetab.h
+++ b/auparse/typetab.h
@@ -86,3 +86,5 @@ _S(AUPARSE_TYPE_NFPROTO,	"family"	)
 _S(AUPARSE_TYPE_ICMPTYPE,	"icmptype"	)
 _S(AUPARSE_TYPE_PROTOCOL,	"proto"		)
 _S(AUPARSE_TYPE_ADDR,		"addr"		)
+_S(AUPARSE_TYPE_ESCAPED,	"apparmor"	)
+_S(AUPARSE_TYPE_ESCAPED,	"operation"	)
-- 
1.7.1

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

end of thread, other threads:[~2012-03-02 17:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-17 12:42 [PATCH] auparse: apparmor fields Marcelo Cerri
2012-02-20 14:17 ` [PATCH v2] " Marcelo Cerri
2012-02-28 23:15   ` Steve Grubb
2012-03-02 17:08     ` Marcelo Henrique Cerri
2012-02-20 15:09 ` [PATCH] " Eric Paris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox