[PATCH] auparse: do not interpret fE as a capability field

Richard Guy Briggs rgb at redhat.com
Tue Jun 13 01:49:24 UTC 2017


The file effective capability is a boolean.  It is being interpreted as the
capability "chown" by auparse.  Just print its raw value.

An example from an execve syscall:
type=BPRM_FCAPS msg=audit(03/07/2017 17:29:56.494:969) : fver=2 fp=sys_admin fi=none fe=chown old_pp=none old_pi=none old_pe=none new_pp=sys_admin new_pi=none new_pe=sys_admin

Fixed:
type=BPRM_FCAPS msg=audit(03/07/2017 17:29:56.494:969) : fver=2 fp=sys_admin fi=none fe=1 old_pp=none old_pi=none old_pe=none new_pp=sys_admin new_pi=none new_pe=sys_admin

See: https://github.com/linux-audit/audit-userspace/issues/18
Signed-off-by: Richard Guy Briggs <rgb at redhat.com>
---
 auparse/typetab.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/auparse/typetab.h b/auparse/typetab.h
index be82796..32283c6 100644
--- a/auparse/typetab.h
+++ b/auparse/typetab.h
@@ -93,7 +93,6 @@ _S(AUPARSE_TYPE_CAP_BITMAP,	"cap_fi"	)
 _S(AUPARSE_TYPE_CAP_BITMAP,	"cap_fp"	)
 _S(AUPARSE_TYPE_CAP_BITMAP,	"fp"		)
 _S(AUPARSE_TYPE_CAP_BITMAP,	"fi"		)
-_S(AUPARSE_TYPE_CAP_BITMAP,	"fe"		)
 _S(AUPARSE_TYPE_CAP_BITMAP,	"old_pp"	)
 _S(AUPARSE_TYPE_CAP_BITMAP,	"old_pi"	)
 _S(AUPARSE_TYPE_CAP_BITMAP,	"old_pe"	)
-- 
1.7.1




More information about the Linux-audit mailing list