Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp724008pxb; Wed, 8 Sep 2021 10:46:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu5SRnnsCoQSh+E1uNh62VVDJXpJVjCqvrLBULrtk3ooiN/PO6B3yb6JVH+eBVguVWn4ym X-Received: by 2002:a6b:f819:: with SMTP id o25mr886798ioh.21.1631123217176; Wed, 08 Sep 2021 10:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631123217; cv=none; d=google.com; s=arc-20160816; b=hi1CvxdkJGBWyOE2p4nPwOph6fF8lZk0fpRZlivbsMh/4VXk+ktzej+p7iYVapA5nG H/ZNrZoJs69QiSGDqhXMoFBMMOw2NMnx31EfClSbj3J/2BYOJ+rGz0NIwx++DifDJogD UhunyJar6G4n4F+X9y5VtUQTuxAoosLo20Gx4pHGFmwMXwoHC6fWffZkq9m3j3LdeG0z ELDxTbskqi0Z36Rey7nFbYFrdRlbMwAm4uF+xbOQ3+DVLAF6LHrxVCVj5s4uRzCMx5ac 2SqtSyKqiRq39YPmsq3C39Ovk18aNI08a429E8ELTD/fM9XvMOUs8HrbD+yDE7Rd1hbL tJ0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=G48sRBUv0RW8Bmsn3wBbdcGbHLUcyA8MFWQ2Ei8wvdk=; b=N1OptH3Cz4vv7hvDEe1pjJfTDZGgJ0QzyNRih9pzNGB1BhBVVE4v0NViNOVG3bQ72m S7JlwinZFu1GWyd7pbEJDXPO6Izdr1frxA580kj0IzO25FFXFuwYJbx41DEUOAxNutN3 LGYYnjvTb7pLU8reDvr24AYKkk01+rcBWOSjbTn0uojl2MagVuS5X1B87+6z0XW1tvIW JRUwY7AJD08N17tHSPB/BVnNCOXau0cc+8FBRKtGKSj+HjKlA+2jLu7V3Kuc9EN79iWk yt9KboW1XSEF58z59XTypkFZH+43DnoMDCa7K+OoHnJoWpoAKqZJL2BRdb3p/wfNJTpg pksA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="NE/7lgtG"; 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 n38si2522194jaf.72.2021.09.08.10.46.44; Wed, 08 Sep 2021 10:46:57 -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="NE/7lgtG"; 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 S1349764AbhIHPlA (ORCPT + 99 others); Wed, 8 Sep 2021 11:41:00 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:58710 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349635AbhIHPk7 (ORCPT ); Wed, 8 Sep 2021 11:40:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631115591; 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=G48sRBUv0RW8Bmsn3wBbdcGbHLUcyA8MFWQ2Ei8wvdk=; b=NE/7lgtGGWGJbuyFBUR+XbHbX5bqkSkSkpOzHLPeRYOZ1yqQYvgkHeR7YWe4tZeikx9BMl V4pni2iD2XP5C2IrCEewKZIpcGN005Uva26m836L4cPyAXcvXhBTdBw7KnmwF0moloMPFu TFlqEUWZF5UjNcp09qpd9XYgMBco81o= 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-361-Yxml9_9IPZma1vMyFQgQOw-1; Wed, 08 Sep 2021 11:39:49 -0400 X-MC-Unique: Yxml9_9IPZma1vMyFQgQOw-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 884791030C20; Wed, 8 Sep 2021 15:39:47 +0000 (UTC) Received: from x2.localnet (unknown [10.22.8.236]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4456E77F29; Wed, 8 Sep 2021 15:39:31 +0000 (UTC) From: Steve Grubb To: =?ISO-8859-1?Q?Wei=DF=2C?= Michael , Richard Guy Briggs Cc: "linux-kernel@vger.kernel.org" , "linux-audit@redhat.com" , "casey@schaufler-ca.com" , "agk@redhat.com" , "linux-raid@vger.kernel.org" , "song@kernel.org" , "eparis@redhat.com" , "snitzer@redhat.com" , "paul@paul-moore.com" , "dm-devel@redhat.com" Subject: Re: [PATCH v4 0/3] dm: audit event logging Date: Wed, 08 Sep 2021 11:39:02 -0400 Message-ID: <4344604.LvFx2qVVIh@x2> Organization: Red Hat In-Reply-To: <20210908131616.GK490529@madcap2.tricolour.ca> References: <20210904095934.5033-1-michael.weiss@aisec.fraunhofer.de> <9ca855cb19097b6fa98f2b3419864fd8ddadf065.camel@aisec.fraunhofer.de> <20210908131616.GK490529@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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, September 8, 2021 9:16:16 AM EDT Richard Guy Briggs wrote: > Another minor oddity is the double "=" for the subj > > > > field, which doesn't appear to be a bug in your code, but still > > > puzzling. > > > > In the test setup, I had Apparmor enabled and set as default security > > module. This behavior occurs in any audit_log message. > > Seems that this is coming from the label handling there. Having a quick > > look at the code there is that they use '=' in the label to provide a > > root view as part of their policy virtualization. The corresponding > > commit is sitting there since 2017: > > "26b7899510ae243e392960704ebdba52d05fbb13" > > Interesting... Thanks for tracking down that cause. I don't know how > much pain that will cause the userspace parsing tools. I've added Steve > Grubb to the Cc: to get his input, but this should not derail this patch > set. It likely breaks any parser. I would even say that it's a malformed event that should be corrected. There's been a published a specification for audit events for at least 5 years. Latest copy is here: https://github.com/linux-audit/audit-documentation/wiki/SPEC-Writing-Good-Events -Steve