Received: by 10.223.185.116 with SMTP id b49csp1055829wrg; Fri, 16 Feb 2018 11:36:13 -0800 (PST) X-Google-Smtp-Source: AH8x226SEYVBk3JE1+nqIkE3XorB1e5uuMNeSiiuTtuQJ0Y72RPpcE8RwWWFzWP2NpccnsB2KcBC X-Received: by 2002:a17:902:8549:: with SMTP id d9-v6mr1771268plo.54.1518809773159; Fri, 16 Feb 2018 11:36:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518809773; cv=none; d=google.com; s=arc-20160816; b=kW1UZoZzuTBjfuptgQXk2zQG/OwVxSm6Hp5UfM6BJnqLC8tG3ZVp3xqz1AM7qhu/i9 XusSx4HI0l+g1Ym7sp8/XuAm7L8KPpWpDCSLCn7Y5jWg0M5vo1HZGyOfXxeo0CkMdpTF vzN/Bt1yOEke9TwMFq1b2taGQS3XNgUj5kHOD+gHowIi2QecZYqM6y531WaupnFVXe2J q8PYIfN6AJ/Fi26MOGlTdoRs4V9+zTJU15IaQLcmfIuq4UfGrVYe+Jl/ZsbblVLUCaDc lqzQ11rua0W6KZcxSLEzW7gzuntv+C+lWnRc/2ALuVQUZMqzUNTW1u2L47haWZ3TfRPl FA0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=7dve2Mn5DJb2HknXUrbKHCgo6NLj+Jip2RIeflL0lpQ=; b=J5X1nLBNZPKCoGz/sbKmRd+FXWpUTUO/I5fkYrIflRJhL/ezRd2t6Q52AO+L/+69qQ wQ8zdqqrSKNjbb35eP9ppI88WMBsRNEselod3/pk28YlfDp/KV97Mnew8v0uLMVa9wqe K957UuR7t2LgTN7Zv6BPvajnAIsKUIMrw+wcyReHQghn+syDD/bm1/hLTMpUFIJ2xBQa nsk86Jo7e/LVYGg1dDj9m+ZiXshVPnw+ThuyO3T79TyqlBMpN7hFE4Rh00he2DFEk8S3 95NoiK/RzTaJgUBYPVqE/RmIojHgWuQLIzvlxg0rp5QJNnzVLFnU+gEt3AkpBCqJA1vu ectg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f64-v6si20802plb.817.2018.02.16.11.35.58; Fri, 16 Feb 2018 11:36:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754472AbeBPI1Z (ORCPT + 99 others); Fri, 16 Feb 2018 03:27:25 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:44366 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754456AbeBPI1X (ORCPT ); Fri, 16 Feb 2018 03:27:23 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 182AD11F621; Fri, 16 Feb 2018 08:27:23 +0000 (UTC) Received: from madcap2.tricolour.ca (ovpn-112-12.rdu2.redhat.com [10.10.112.12]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D61702026DFD; Fri, 16 Feb 2018 08:27:21 +0000 (UTC) Date: Fri, 16 Feb 2018 03:23:30 -0500 From: Richard Guy Briggs To: Paul Moore Cc: Linux-Audit Mailing List , LKML , Eric Paris , Steve Grubb Subject: Re: [PATCH ghak8 ALT4 V4 0/3] audit: show more information for entries with anonymous parents Message-ID: <20180216082330.76obts2tvqwteqle@madcap2.tricolour.ca> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171027 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Fri, 16 Feb 2018 08:27:23 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Fri, 16 Feb 2018 08:27:23 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'rgb@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-02-15 17:15, Paul Moore wrote: > On Mon, Feb 12, 2018 at 12:02 AM, Richard Guy Briggs wrote: > > More than one filesystem was causing hundreds to thousands of null PATH > > records to be associated with the *init_module SYSCALL records on a few > > modules with corresponding audit syscall rules. > > > > This patchset adds extra information to those PATH records to provide > > insight into what is generating them, including a partial pathname, > > fstype field, and two new filetypes that indicate the pathname isn't > > anchored at the root of the task's root filesystem. > > > > Richard Guy Briggs (3): > > audit: show partial pathname for entries with anonymous parents > > audit: append new fstype field for anonymous PATH records > > audit: add new filetypes CREATE_ANON and PARENT_ANON > > The more I look at this, the more I prefer your original approach that > prefixed the relative pathname with the fstype. Yes, I do realize > that you sort of work around that by including the fstype as a new > field in the PATH records, but we're still stuck with those odd > relative/un-rooted name fields. They are signalled as being unrooted by the ANON filetypes. And now that you mention it, should fail the ausearch-test since it isn't a "full path", as claimed is necessary in ghak70 (so I don't see why the KERN_MODULE name= record/field fails that test). > Further, I don't recall ever hearing a good reason why the original > approach wasn't acceptable to Steve's userspace. I know he did make > some very last minute hand-wavy comments, but none of those made any > sense to me; I don't understand why Steve's audit record parser is > even looking in the pathname string. > > I'm going to park these patches in limbo for the time being. Can you give me an idea how long that might be? > paul moore - RGB -- Richard Guy Briggs Sr. S/W Engineer, Kernel Security, Base Operating Systems Remote, Ottawa, Red Hat Canada IRC: rgb, SunRaycer Voice: +1.647.777.2635, Internal: (81) 32635