From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 819F8C433E0 for ; Tue, 19 May 2020 19:18:57 +0000 (UTC) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CD3422075F for ; Tue, 19 May 2020 19:18:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="cY+Cpw90" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD3422075F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=paul-moore.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-audit-bounces@redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589915935; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=KrqlPduE6ABg7Dl2kXF1stLlzdPrAYt0JN5uMwOXVEk=; b=cY+Cpw90wtHqG4oSvWHkxGc9T0Ay5X5daSymS8j4CvIXfFfUctCFIlP1/Dmx4mF9fismvm pxi7Zl5mzmronqpRgP9ow8kFlKG+ZhNZXwlFuEyk16bmEXWDkBgySNI7Ma3kbPq6kX5w/Q K2ZBOdPGhEe0JvR80/hiODMkyTGF668= 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-511-gDuJZCAnMleTxOkidi-WHQ-1; Tue, 19 May 2020 15:18:53 -0400 X-MC-Unique: gDuJZCAnMleTxOkidi-WHQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7D0BD107B767; Tue, 19 May 2020 19:18:48 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 902865C1BB; Tue, 19 May 2020 19:18:47 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 818CF4ED87; Tue, 19 May 2020 19:18:43 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 04JJIeqi020797 for ; Tue, 19 May 2020 15:18:41 -0400 Received: by smtp.corp.redhat.com (Postfix) id CDF7210CD917; Tue, 19 May 2020 19:18:40 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C90E210CD915 for ; Tue, 19 May 2020 19:18:38 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 82B28101A525 for ; Tue, 19 May 2020 19:18:38 +0000 (UTC) Received: from mail-ej1-f67.google.com (mail-ej1-f67.google.com [209.85.218.67]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-36-iwuf1OdkP_qj7owPxlmz2w-1; Tue, 19 May 2020 15:18:36 -0400 X-MC-Unique: iwuf1OdkP_qj7owPxlmz2w-1 Received: by mail-ej1-f67.google.com with SMTP id a2so255076ejb.10 for ; Tue, 19 May 2020 12:18:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pwDvf5G6HSaQ20Oxj0p6X54Wu/x0ouoEho2X1JQouNk=; b=cbvCYIwHtHG5zUqhGfz5JbOGP/k0o/rCWUZXABWX5JlSDHlSUJglR1TEN+uBYt2KKj JgYHUpcQ/Cno7totxuvRwNqDkPSLGWtmL7TcAe3FunyUipBt8dqYW1iBXfBVlIV4IOXx cAdGWjZemDrjuZNC9lTtCriFvespQxC/FVjVBaRkCIAPp7CbWxnGVLGSbMnhAeUWJLPW Ut+wx3B4Z4bp+vAL0MoS1PJ0WE/qGJjVJLT4pHzqY7ZmguJqBzLKt2dn11JeGbfZ/8cT jG2ilq2gbgBcDZHX/f+3fvdCv8SDz+00Wm6FyL2tfoBbxDwQY2maEIE2euTFxNm/3Ze6 vH+w== X-Gm-Message-State: AOAM530O5d8af0DA/30rUxbTlLkMKisN9IYSroI1llnnHNf9l99WPU/a y/e3BqyQfblEqakHa2iACEuuMYWJAnIxaAVx6Eb8 X-Google-Smtp-Source: ABdhPJwIXuucs0DGivH6PwCdg07KxPMElgAI2ADtY9VUQAv/qt4fe3j2mqb2tBpIQWZ5V2ksbjrenTScUT/dJ6h48BY= X-Received: by 2002:a17:907:40f1:: with SMTP id no1mr689589ejb.178.1589915914530; Tue, 19 May 2020 12:18:34 -0700 (PDT) MIME-Version: 1.0 References: <2794b22c0b88637a4270b346e52aeb8db7f59457.1589853445.git.rgb@redhat.com> In-Reply-To: <2794b22c0b88637a4270b346e52aeb8db7f59457.1589853445.git.rgb@redhat.com> From: Paul Moore Date: Tue, 19 May 2020 15:18:23 -0400 Message-ID: Subject: Re: [PATCH ghak25 v5] audit: add subj creds to NETFILTER_CFG record to cover async unregister To: Richard Guy Briggs X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: linux-audit@redhat.com Cc: fw@strlen.de, LKML , Linux-Audit Mailing List , netfilter-devel@vger.kernel.org, twoerner@redhat.com, Eric Paris , tgraf@infradead.org X-BeenThere: linux-audit@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Linux Audit Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Tue, May 19, 2020 at 11:31 AM 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 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 uid=root auid=unset subj=system_u:system_r:kernel_t:s0 comm=kworker/u4:2 Based on where things were left in the discussion on the previous draft, I think it would be good if you could explain a bit why the uid and auid fields are useful here. -- paul moore www.paul-moore.com -- Linux-audit mailing list Linux-audit@redhat.com https://www.redhat.com/mailman/listinfo/linux-audit