Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp85676pxj; Thu, 10 Jun 2021 15:36:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeeGiT1GBbD+5mMbPzXBSAIwZTLqtfvKsB+hp+3JeE2cb9rDjXP82PdD9RGWJ1Zme53tHj X-Received: by 2002:aa7:dc17:: with SMTP id b23mr652167edu.359.1623364619749; Thu, 10 Jun 2021 15:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623364619; cv=none; d=google.com; s=arc-20160816; b=0zDmTcoX9+oCXbQKiKKm5V22Sq7f2W0LSfj8xXyfpzOA3p0tcJH5MzlmglI3EXKU95 /mXzrbQZSursTPsVfoOw5T63RKmAzgyc0btYHGg8tZcGLq3grFuwGT64QF5vtV51G+y6 B62CWVkcr1mZDPyojbr48VrUBsfIS/ENcOk4FmdiZEe5osSkKjvUGIXI/KU2Mj7uDWfL G2jht+MkU8yfLt9QTkVg16e/yhjX0LZ0qfAqLaW6CDQivtdMJkeZinNJKh80rYzwFBpf pE8RHUJY3YhWwbhPKYShkzQN4N9h8TQU8lMBh3D9ie75OGMyk+S/g5Qiuo5BATtVLu2f bDtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=lugcbuxkrChZyEnzTfnVK2MptC5yQKam5ahevcJu0YU=; b=Fa0pcdg4wKudE1nj9/4kwgXkSUUz0EaVOX0HEY5TMv3x+3hJw2OY1xJCOtbQXcRgJR NL3rhCvlQBBqB5fBvcXtGX8s8AQb8KCp47PxakvZchdgCmtTxY7QCF4Ld+t0Oaoi85Yi izv23pqa70jtPUy9ySaTZ8oAMI69qnYa72ZJusUnAiI4xWIUZtqBcJiQl4U8TtHWVbJd tmRCRJBXgymPliIMc6EmcJp0q1Pd52o88hxypu2FQOyuIDtx9hgU/tUtZ0p5pX/xZC/I iTOy3vC0YIbJrvBbie3gc8CWbvCur9HT/dZajg/3+QNzv8ZbyuHjrYJCnHXKwrQkojZy 8PkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=snoCWNXS; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u17si3213636edr.539.2021.06.10.15.36.35; Thu, 10 Jun 2021 15:36:59 -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=@gmail.com header.s=20161025 header.b=snoCWNXS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230416AbhFJWfq (ORCPT + 99 others); Thu, 10 Jun 2021 18:35:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230169AbhFJWfp (ORCPT ); Thu, 10 Jun 2021 18:35:45 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74922C061574; Thu, 10 Jun 2021 15:33:32 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id j12so888285pgh.7; Thu, 10 Jun 2021 15:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=lugcbuxkrChZyEnzTfnVK2MptC5yQKam5ahevcJu0YU=; b=snoCWNXSRJAxUP91EbC+Kk7qUaZobiVEcS/9FEgPpLE1v/FaA0jzCnP0fACDgBn6uE jx9dNo/4slT7Du/OkVN5gn2AcvjAbCRmGnVbLriBwHt2x+BZ+WVy804Mo7yJzFrDYuLS x5ClwtOOhENvZQNqwCplq1BOXJqhQblFpFJez+592rmIGnkfieR5s+9VAFUgi2ofr8Zl fSkDCJfxl2sSXKrCs+vsNbOxL3Smn2mtTbShP2g2wH/mWwRnnqQDH7ZDnqFOTPszkI4L mr+VvpBXBdFPd1AUJ22ImYuq2R5/C76A4jaVCKW1RfBjGKS2E4Ph+5H1jLQgbSptPtld Zd8w== 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:content-transfer-encoding; bh=lugcbuxkrChZyEnzTfnVK2MptC5yQKam5ahevcJu0YU=; b=NJdiyy900AnRDNg4+gulYAveRUGskQKb1Z1MftaA+7UaOrMFCIQUh3l/IHkoyr4Cb4 SOifQyD/NaEfKXVrhS2DeInhHaNuwjJKzjRJla3Cl2Cc8L3g5FHHWOwefDreYmoYkir4 4aCi8tEdTLLsmMH62r1gfzIDeBXJpqA/xuQvb3KKeIf7tAsh6baHkm+dHmSseOpziK+y 9mNWFz8AsOC3IPe4lTo3vvJMTnskjUCpVAiH6pUnJfwujDunu56BxOe/wJ0v9bT4fqPi rRusD4VaAbp/iROHSEwTX4vwcOZhM/JKtlvsmvzLwn7gH+n3k7Uedt85Jf0tPCVaI8uy yH3g== X-Gm-Message-State: AOAM533/N6cr7sbtzHENw2bInofVNEn7XAYoPVT50z/OqpC3OUVfDCs1 B6FyQ03Afk9azqqUfJ7Pq7lLL4lqt2vS4QUCILI= X-Received: by 2002:a63:f815:: with SMTP id n21mr621499pgh.2.1623364411976; Thu, 10 Jun 2021 15:33:31 -0700 (PDT) MIME-Version: 1.0 References: <20210608230929.GA1214@raspberrypi> In-Reply-To: From: Austin Kim Date: Fri, 11 Jun 2021 07:33:23 +0900 Message-ID: Subject: Re: [PATCH] LSM: SafeSetID: Mark safesetid_initialized as __initdata To: Micah Morton Cc: James Morris , "Serge E. Hallyn" , linux-security-module , Linux Kernel Mailing List , =?UTF-8?B?6rmA64+Z7ZiE?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2021=EB=85=84 6=EC=9B=94 11=EC=9D=BC (=EA=B8=88) =EC=98=A4=EC=A0=84 1:50, M= icah Morton =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > Thanks for the patch. Looks right, since that variable is only used in > safesetid_security_init() and safesetid_init_securityfs(), which are > both marked __init. I can merge it to the safesetid-next branch today > and send the patch through my tree during the 5.14 merge window. Great. Thanks! > > On Tue, Jun 8, 2021 at 1:09 PM Austin Kim wrote: > > > > Mark safesetid_initialized as __initdata since it is only used > > in initialization routine. > > > > Signed-off-by: Austin Kim > > --- > > security/safesetid/lsm.c | 2 +- > > security/safesetid/lsm.h | 2 +- > > 2 files changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/security/safesetid/lsm.c b/security/safesetid/lsm.c > > index 1079c6d54784..963f4ad9cb66 100644 > > --- a/security/safesetid/lsm.c > > +++ b/security/safesetid/lsm.c > > @@ -22,7 +22,7 @@ > > #include "lsm.h" > > > > /* Flag indicating whether initialization completed */ > > -int safesetid_initialized; > > +int safesetid_initialized __initdata; > > > > struct setid_ruleset __rcu *safesetid_setuid_rules; > > struct setid_ruleset __rcu *safesetid_setgid_rules; > > diff --git a/security/safesetid/lsm.h b/security/safesetid/lsm.h > > index bde8c43a3767..d346f4849cea 100644 > > --- a/security/safesetid/lsm.h > > +++ b/security/safesetid/lsm.h > > @@ -19,7 +19,7 @@ > > #include > > > > /* Flag indicating whether initialization completed */ > > -extern int safesetid_initialized; > > +extern int safesetid_initialized __initdata; > > > > enum sid_policy_type { > > SIDPOL_DEFAULT, /* source ID is unaffected by policy */ > > -- > > 2.20.1 > >