From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: [PATCH] auparse: do not interpret fE as a capability field Date: Tue, 13 Jun 2017 08:37:35 -0400 Message-ID: <3219534.iRscQ7qE3V@x2> References: <1497318564-26714-1-git-send-email-rgb@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1497318564-26714-1-git-send-email-rgb@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Richard Guy Briggs , Paul Moore Cc: linux-audit@redhat.com List-Id: linux-audit@redhat.com On Monday, June 12, 2017 9:49:24 PM EDT Richard Guy Briggs wrote: > The file effective capability is a boolean. It is being interpreted as the > capability "chown" by auparse. Just print its raw value. Applied. Thanks! -Steve > 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 > --- > 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" )