Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp786429ybk; Wed, 20 May 2020 11:55:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2HMNASysZ/gXGe+iMi5HB8XHWN3EDLQQq9se7SToFjG1yqXyp8EoALtmRYojY5YpQXLyh X-Received: by 2002:aa7:da8c:: with SMTP id q12mr4807513eds.334.1590000956604; Wed, 20 May 2020 11:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590000956; cv=none; d=google.com; s=arc-20160816; b=jkywZIUhkRbV3ADiz/BILDWgmrudQ0ImzNeGIbZVPZWaTOYXhlg+yRLwdy+otCGPj3 liIBHQZpeb49pKDkmGjHpG6wHJqe2jrP3iQSOXkcncxa+cejm8N6rQBfLTy2L60ZLr0+ 4wzRB02OAJVBxTEJoTEwR2EXBkwTRnMbCQ5Tpl6gLiDuk5WzJO1VoHSoNBVwcAQw28Y+ o9uPcoQrlmTCjAUXo76c999V3ZqlW2SJZJDoBapOBSTHqfoz3/ofcLZ9Adau4xZc5rOe FFZ0pkndUachPsDnRr3eDBhO0szKzzAcuDJtMDfP6jXRu46MaMNTxVv4/hhYAYhhX5U1 tVIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=i7NGOkH1/ieAk2tsV7Q3wjcwjWy0KsoOhkKcYWwhGtY=; b=aoXkAO76GsbSAPh17JSVLpZpqZJkXrndNsWzMYV3EXFcjB78Th9h7gau+vEy4eNjmi vv7+QiRUrPNsKOKhQx07zXaoo4mZbwUncy2VIGBphwjLXGSOVnkSjcg/XMQQffaHy34J HpSIMIEk5/KeVilDVsVRMt0ItdeTGnoegOyGgPk5LQBSkGFb7p+3lU2qsb03Y+LwEzLb uSXugU1fiNfBYaI1fYwIwHGyyA2OJ8IS25xI6Gin7OEjhzqFD/mmwap9mvNmtB3KES7V fQTpcxIommnYHHKhXQOyTS34NaqjKKxLUck5ef050jph8dVIETjr3JqL7a3f0wC2FSnw R3LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="h/26i993"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si1964673edj.13.2020.05.20.11.55.32; Wed, 20 May 2020 11:55:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="h/26i993"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727033AbgETSvj (ORCPT + 99 others); Wed, 20 May 2020 14:51:39 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:50696 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726560AbgETSvj (ORCPT ); Wed, 20 May 2020 14:51:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590000698; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i7NGOkH1/ieAk2tsV7Q3wjcwjWy0KsoOhkKcYWwhGtY=; b=h/26i993XvHlnwr86MD1OF3ApkjUCGeEZUgbLTugeYAIpx7fQTWMYUecT1HWsJ7VKsLcWl HGLU0Z3u9vgiAndH7ipbdFIH+piEggrBMoXCCruT+dnngV9X+Cjpg+CgeAA/WXiNQeiP0f kANrsKGfRgsuya2zWMykK8iU1HDavqg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-330-fhHYUOsQM1-Yh8Ernl_uFQ-1; Wed, 20 May 2020 14:51:34 -0400 X-MC-Unique: fhHYUOsQM1-Yh8Ernl_uFQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4B295EC1AD; Wed, 20 May 2020 18:51:33 +0000 (UTC) Received: from x2.localnet (ovpn-113-172.phx2.redhat.com [10.3.113.172]) by smtp.corp.redhat.com (Postfix) with ESMTP id CDC267D96E; Wed, 20 May 2020 18:51:27 +0000 (UTC) From: Steve Grubb To: linux-audit@redhat.com Cc: Paul Moore , Richard Guy Briggs , fw@strlen.de, LKML , netfilter-devel@vger.kernel.org, twoerner@redhat.com, Eric Paris , tgraf@infradead.org Subject: Re: [PATCH ghak25 v6] audit: add subj creds to NETFILTER_CFG record to cover async unregister Date: Wed, 20 May 2020 14:51:26 -0400 Message-ID: <17476338.hsbNre52Up@x2> Organization: Red Hat In-Reply-To: References: <20200520165510.4l4q47vq6fyx7hh6@madcap2.tricolour.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, May 20, 2020 2:40:45 PM EDT Paul Moore wrote: > On Wed, May 20, 2020 at 12:55 PM Richard Guy Briggs wrote: > > On 2020-05-20 12:51, Richard Guy Briggs wrote: > > > Some table unregister actions seem to be initiated by the kernel to > > > garbage collect unused tables that are not initiated by any userspace > > > actions. It was found to be necessary to add the subject credentials > > > to cover this case to reveal the source of these actions. A sample > > > record: > > > > > > The uid, auid, tty, ses and exe fields have not been included since > > > they > > > are in the SYSCALL record and contain nothing useful in the non-user > > > context. > > > > > > type=NETFILTER_CFG msg=audit(2020-03-11 21:25:21.491:269) : table=nat > > > family=bridge entries=0 op=unregister pid=153 > > > subj=system_u:system_r:kernel_t:s0 comm=kworker/u4:2 > > FWIW, that record looks good. It's severely broken cat log.file type=NETFILTER_CFG msg=audit(2020-03-11 21:25:21.491:269) : table=nat family=bridge entries=0 op=unregister pid=153 subj=system_u:system_r:kernel_t:s0 comm=kworker/u4:2 ausearch -if log.file --format text At 19:33:40 12/31/1969 did-unknown ausearch -if log.file --format csv NODE,EVENT,DATE,TIME,SERIAL_NUM,EVENT_KIND,SESSION,SUBJ_PRIME,SUBJ_SEC,SUBJ_KIND,ACTION,RESULT,OBJ_PRIME,OBJ_SEC,OBJ_KIND,HOW error normalizing NETFILTER_CFG ,NETFILTER_CFG,12/31/1969,19:33:40,0,,,,,,,,,, This is unusable. This is why the bug was filed in the first place. -Steve > > > Signed-off-by: Richard Guy Briggs > > > > Self-NACK. I forgot to remove cred and tty declarations.