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=-3.8 required=3.0 tests=BAYES_00, 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 E558CC63697 for ; Mon, 23 Nov 2020 07:42:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A735B2073C for ; Mon, 23 Nov 2020 07:42:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728086AbgKWHmO (ORCPT ); Mon, 23 Nov 2020 02:42:14 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:33413 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725847AbgKWHmO (ORCPT ); Mon, 23 Nov 2020 02:42:14 -0500 Received: from ip5f5af0a0.dynamic.kabel-deutschland.de ([95.90.240.160] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kh6U2-000754-LD; Mon, 23 Nov 2020 07:41:58 +0000 Date: Mon, 23 Nov 2020 08:41:57 +0100 From: Christian Brauner To: Paul Moore Cc: Alexander Viro , Christoph Hellwig , linux-fsdevel@vger.kernel.org, John Johansen , James Morris , Mimi Zohar , Dmitry Kasatkin , Stephen Smalley , Casey Schaufler , Arnd Bergmann , Andreas Dilger , OGAWA Hirofumi , Geoffrey Thomas , Mrunal Patel , Josh Triplett , Andy Lutomirski , Theodore Tso , Alban Crequy , Tycho Andersen , David Howells , James Bottomley , Jann Horn , Seth Forshee , =?utf-8?B?U3TDqXBoYW5l?= Graber , Aleksa Sarai , Lennart Poettering , "Eric W. Biederman" , smbarber@chromium.org, Phil Estes , Serge Hallyn , Kees Cook , Todd Kjos , Jonathan Corbet , containers@lists.linux-foundation.org, linux-security-module@vger.kernel.org, linux-api@vger.kernel.org, linux-ext4@vger.kernel.org, linux-audit@redhat.com, linux-integrity@vger.kernel.org, selinux@vger.kernel.org Subject: Re: [PATCH v2 31/39] audit: handle idmapped mounts Message-ID: <20201123074157.fqus6fgtcytydp2c@wittgenstein> References: <20201115103718.298186-1-christian.brauner@ubuntu.com> <20201115103718.298186-32-christian.brauner@ubuntu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: On Sun, Nov 22, 2020 at 05:17:39PM -0500, Paul Moore wrote: > On Sun, Nov 15, 2020 at 5:43 AM Christian Brauner > wrote: > > > > Audit will sometimes log the inode's i_uid and i_gid. Enable audit to log the > > mapped inode when it is accessed from an idmapped mount. > > I mentioned this in an earlier patch in this patchset, but it is worth I did not receive that message. > repeating here: audit currently records information in the context of > the initial/host namespace and I believe it should probably stay that > way until the rest of the namespace smarts that Richard is working on Ah, that's good to know and makes the patchset simpler so I'm all for it. Christian