Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4353043pxu; Mon, 21 Dec 2020 10:14:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8cLHdr+sBw0u34PnjHDmgRn2s0D0Bz7vImi+XM6l7m2yeUlQL72f3cCg10rSXbL0ybpeQ X-Received: by 2002:a17:906:495b:: with SMTP id f27mr15876016ejt.338.1608574456281; Mon, 21 Dec 2020 10:14:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608574456; cv=none; d=google.com; s=arc-20160816; b=VmBWaljUSLdMFuwQctw3pRZjheIZeXKtV9Z+uzXAQGuIMl+ZlwTnJWLVFjMQUAa4Zc mqns/DxwOPX1/Up9krqM8HhXyCpdxliH2XzMM9eNGZ1XX7weXXBOBBGSN7sJ1fs/KuaJ PeYNCB3C8mtmtDGNo9UzWnzE1l2zSBaozA3aN4nAd4TuxGAf0wZ4P4o8kL6ngI2uNpU3 qwLWXEJKVzmsKtDgxxso+GcA0iZ3Dh6sAk5K90L6C7fI9caKlBc0jKSp6fPB1SGFtn6l 0u6/njvJxettT4SN6GegywZ2/j4DBMgtdmuRsXklT3FG2RKMaI1eYIAS6Ty5qmow0zN+ AA+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=RDT3CMWkb5v4KlAY6bNjmDFLqwN6ZEiRSV+Z6DSzr0s=; b=ASvE7Wtj7Zak/+TEiu8yiWlOMYqFWBsJbpDwZ3W3mvfNtEGoFps2gRs50TkJo17ZQg eleJUNPbJtP3/G1K5drTOaiyJXueygvOIfQAcB7le3zD1K/LZ27C+iNt1oqpCdLBr0hW mPwy6s6fSrazDS/t8uD/mWUsjEeixFYS9CkgXerLO74It8snb+EZoN7V/qGoh6QzTo4R 6YmgMb7pghH/KpcBVnEsxHLpxSmH2/TKwqwbw2FcN62fVT/Ew8ShwxAP7ZcUHpo3l8s/ VY3l9LfseEdsgvZwTn/RzA0DqYLM72EJ9S8UKkKP0rRV9kBAsM422WJ655C5w8DJBYYO PqtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=jrj8LYfQ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gt24si9765700ejb.248.2020.12.21.10.13.53; Mon, 21 Dec 2020 10:14:16 -0800 (PST) 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=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=jrj8LYfQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725891AbgLUSNg (ORCPT + 99 others); Mon, 21 Dec 2020 13:13:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725852AbgLUSNf (ORCPT ); Mon, 21 Dec 2020 13:13:35 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54D0EC0613D3 for ; Mon, 21 Dec 2020 10:12:55 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id a12so12001258wrv.8 for ; Mon, 21 Dec 2020 10:12:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RDT3CMWkb5v4KlAY6bNjmDFLqwN6ZEiRSV+Z6DSzr0s=; b=jrj8LYfQ+G2abRBjq/EQNO52IGqX1ROGqjr73asfsMUx2io1t/Kj5vaWeNRQ05QBws 7ORYHBk1SfigU2h39+yGI1Lk3AhN50Cgw2pM71/m4zP1hwb+ikD3+K55GDIFL6cu4N9x ZXqkVEqq4e9zYCD39Pgl2Yl2UyuINtmv3u1EhVxYVIV2oRUT+oNTfNWmFPJ0oiSuI1AA DmducotL7D+1FUZXOZvqHAm9lf7QMa82bUozYx7IzidUTWK7x6Iib27Ho/jYH5ne0Z0S Of1Dbmmu0Q124UefwB1rJjBdPSQEFSj36Hggs/J2Zs9T0HFyX0niq795BUINRYC4pEQ5 L9qw== 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=RDT3CMWkb5v4KlAY6bNjmDFLqwN6ZEiRSV+Z6DSzr0s=; b=EaLzecAVYFeawdDTwGXBoHJydesrwNEtcjzYhItpc+x+IgG0kAukMXZcNjzCzGAuf7 bdyCzJQv++06e7BqBVcpQn1ep7n9OecIrvUkdXVH3i/8YUHvEeR66+JrChkxx84BRmag RIcROtmmolWz9DoXhp40epR+j3crPxt4GPOj+/sZ6tfX24tkpFFtl09jObF9CHoUOXcS avdF0JoJ10tnPP+xW2DcO4e+hyS7W6skJQNWWnz1cbkApUak32hjbJXokh1/7taOq0hW +ZnL5x2HiAa1yz1CAYj1YMPFZzlmQzfwr6VyyTkPdDnacwu4mOyYLFbajrOHqwp5n8YX GkEA== X-Gm-Message-State: AOAM530pLtcjfdtf1ldK7NgNzT5GhX+3MwcRbp3fQncSo2fIx9izhDDt dCkclyF0bx4XTXo2WWtZsEEogiUohqPVeUxzZ0pls3t4CQ== X-Received: by 2002:a17:907:d9e:: with SMTP id go30mr15735065ejc.488.1608570889830; Mon, 21 Dec 2020 09:14:49 -0800 (PST) MIME-Version: 1.0 References: <982b9adffbd32264a853fe7f4f06f0d0a882c11d.1608225886.git.rgb@redhat.com> In-Reply-To: <982b9adffbd32264a853fe7f4f06f0d0a882c11d.1608225886.git.rgb@redhat.com> From: Paul Moore Date: Mon, 21 Dec 2020 12:14:38 -0500 Message-ID: Subject: Re: [PATCH ghak90 v10 01/11] audit: collect audit task parameters To: Richard Guy Briggs Cc: Linux Containers List , Linux API , Linux-Audit Mailing List , Linux FSdevel , LKML , Linux NetDev Upstream Mailing List , Netfilter Devel List , Jens Axboe , Neil Horman , David Howells , "Eric W. Biederman" , Simo Sorce , Eric Paris , Christian Brauner , mpatel@redhat.com, Serge Hallyn Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 21, 2020 at 11:57 AM Richard Guy Briggs wrote: > > The audit-related parameters in struct task_struct should ideally be > collected together and accessed through a standard audit API and the audit > structures made opaque to other kernel subsystems. > > Collect the existing loginuid, sessionid and audit_context together in a > new opaque struct audit_task_info called "audit" in struct task_struct. > > Use kmem_cache to manage this pool of memory. > Un-inline audit_free() to be able to always recover that memory. > > Please see the upstream github issues > https://github.com/linux-audit/audit-kernel/issues/81 > https://github.com/linux-audit/audit-kernel/issues/90 > > Signed-off-by: Richard Guy Briggs > Acked-by: Neil Horman > Reviewed-by: Ondrej Mosnacek Did Neil and Ondrej really ACK/Review the changes that you made here in v10 or are you just carrying over the ACK/Review? I'm hopeful it is the former, because I'm going to be a little upset if it is the latter. > --- > fs/io-wq.c | 8 +-- > fs/io_uring.c | 16 ++--- > include/linux/audit.h | 49 +++++--------- > include/linux/sched.h | 7 +- > init/init_task.c | 3 +- > init/main.c | 2 + > kernel/audit.c | 154 +++++++++++++++++++++++++++++++++++++++++- > kernel/audit.h | 7 ++ > kernel/auditsc.c | 24 ++++--- > kernel/fork.c | 1 - > 10 files changed, 205 insertions(+), 66 deletions(-) -- paul moore www.paul-moore.com