Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp271708ybj; Fri, 8 May 2020 11:25:47 -0700 (PDT) X-Google-Smtp-Source: APiQypL8iUhHkpSXdB0nAVQ1Ikw8f8GbrPTk1x13o6Uk9syxd4ntmliXTLBBpWxjPt7GqGRv3Hrw X-Received: by 2002:a17:906:1fd6:: with SMTP id e22mr3157345ejt.150.1588962347355; Fri, 08 May 2020 11:25:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588962347; cv=none; d=google.com; s=arc-20160816; b=YIiRzTVZxbN/KMQdbh0gY9KlpiCshDjHPhMkl0WLBN9S/WjmioZxnQGlDwQTRy+xXr XAqDNDiV0p1/EcVyoJ71b2nhQhGnGixgmvO/s92U25WWpiWjOvJr1XyyJYpWsko63tpq wziL129r4i8KnkjilsklsgHUH45CoQaTwnHRvln93bfFFqyYWfUnenBRmAm1T5ZRHFeP TTA2mjWgL38dRZDCnDamRZQ7me87FvOdXUM/lGbpZ6zwW1o2M9pSsHkLJeLmFMLMCi6G woAUpBC01cIWaY4TFs5W/c+KToaK25e48VqVc8v0Z66PfEfN5Y0yq3W0wCH+IYD5tCC/ 2wgA== 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=myo8Tk8TgNvVtlGSwYNrPjsKmagFJfTNCigTo/58By4=; b=pf39mhEQzqu4bSa7TlP2bQ7j6BkX7z+IF0EkZY7avbu3iY0KpoIVtUL6l9GjxkWXip iOQDL2SVk0UU+i5BoFl88lAlstsbICbx92PIHgKxSl14EwWQiuXDCTZerNOFNtSElUyp wEAH1axuehcEycNXGLo+cT5ybofw1fd++rL0TEgSpm7WzavedaCvxYVhHioIM4DOSzUI JGueP9Hh+4qP3K2a6btk7B8IMFq+xBZblImLbIux+LFnaZut5UWV/YM7YbZoA9mDvOvv qr7XV60I2FKkgDt8dohDMj2nH8Ngian7nUWYjZVDj0Xe2GOJPKGKr7ofGtuAaoNRNxVC mSJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hnWnfFl6; 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 ha13si1366283ejb.390.2020.05.08.11.25.23; Fri, 08 May 2020 11:25:47 -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=hnWnfFl6; 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 S1727789AbgEHSXa (ORCPT + 99 others); Fri, 8 May 2020 14:23:30 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:55779 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726873AbgEHSXa (ORCPT ); Fri, 8 May 2020 14:23:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588962209; 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=myo8Tk8TgNvVtlGSwYNrPjsKmagFJfTNCigTo/58By4=; b=hnWnfFl6Iofwt/CLoj0DqW0ZdfyQLUL+z4sIYpURjEhoXMxtZxcJWRLoMMwkadV38Xujmj IqZCVnVlxKecyni56OVLwxWBfLs+5zBgXpAuXWkZSpVzVrkLA/5xr/XnT+hSQW9fZQotts DzAboyW7EMGeukage18R2MLUYNRZZSw= 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-245-5zrj16gVMhmfL_UvzKa_wg-1; Fri, 08 May 2020 14:23:27 -0400 X-MC-Unique: 5zrj16gVMhmfL_UvzKa_wg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CBDC0107ACF9; Fri, 8 May 2020 18:23:25 +0000 (UTC) Received: from x2.localnet (ovpn-113-49.phx2.redhat.com [10.3.113.49]) by smtp.corp.redhat.com (Postfix) with ESMTP id 57FFA6AD1B; Fri, 8 May 2020 18:23:18 +0000 (UTC) From: Steve Grubb To: Richard Guy Briggs Cc: Paul Moore , Linux-Audit Mailing List , LKML , netfilter-devel@vger.kernel.org, omosnace@redhat.com, fw@strlen.de, twoerner@redhat.com, Eric Paris , ebiederm@xmission.com, tgraf@infradead.org Subject: Re: [PATCH ghak25 v4 3/3] audit: add subj creds to NETFILTER_CFG record to cover async unregister Date: Fri, 08 May 2020 14:23:17 -0400 Message-ID: <1894903.vQEQaK82eK@x2> Organization: Red Hat In-Reply-To: <20200506224233.najv6ltb5gzcicqb@madcap2.tricolour.ca> References: <3250272.v6NOfJhyum@x2> <20200506224233.najv6ltb5gzcicqb@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.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, May 6, 2020 6:42:33 PM EDT Richard Guy Briggs wrote: > > > > We can't be adding deleting fields based on how its triggered. If > > > > they are unset, that is fine. The main issue is they have to behave > > > > the same. > > > > > > I don't think the intent was to have fields swing in and out depending > > > on trigger. The idea is to potentially permanently not include them in > > > this record type only. The justification is that where they aren't > > > needed for the kernel trigger situation it made sense to delete them > > > because if it is a user context event it will be accompanied by a > > > syscall record that already has that information and there would be no > > > sense in duplicating it. > > > > We should not be adding syscall records to anything that does not result > > from a syscall rule triggering the event. Its very wasteful. More > > wasteful than just adding the necessary fields. > > So what you are saying is you want all the fields that are being > proposed to be added to this record? Yes. > If the records are all from one event, they all should all have the same > timestamp/serial number so that the records are kept together and not > mistaken for multiple events. But NETFILTER_CFG is a simple event known to have only 1 record. > One reason for having information in seperate records is to be able to > filter them either in kernel or in userspace if you don't need certain > records. We can't filter out SYSCALL. -Steve