Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4747187pxv; Tue, 20 Jul 2021 10:39:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwT8+YE0oKWuaVzwidjpHzCPGaJfgp6L3kx9xiUF32jWVWMXsr4qKUhWG5ldBpAA7SUGQH0 X-Received: by 2002:aa7:dd1a:: with SMTP id i26mr32353418edv.192.1626802758548; Tue, 20 Jul 2021 10:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626802758; cv=none; d=google.com; s=arc-20160816; b=xGYbfqxQv625kIXqFLP6AnS3TxrdNG771HQmAKdd4RjdooOFDYED6jnMhMywo5Nm4P Parwn60Frt9g67vDnwkMnzCEVSAor8IToeaOHthy/dQBDX8CKy6q3t1RnPHNCaiPRbim 01CecKGxs/NY5Y2BzCKrTv3yaTyFim5TT7tybauMez+W5bIWxKilXDCwE8VWhit/h0gS 3yixSIel9xQujq6LA59+v3GeUY910n9d5xz8c6BRMWjkpmUpIPnLo3vxsoJKi6blzOTM fFBi/IOjC/4dShF16UcZvot+Wvp6sa0sDh3K4Cx1N5JNP3DEaWbzvzzn9MviWh1JE0Gr l46w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=/n4LHbi3giDTHUJ42v1q1asZS5RAbQcZRXb2VVdslD4=; b=p0Vmk1K7rspsahx7ayXyH3PxyXmZz3ok0bkf+pJYgGaWOoRdRLTL+8AM6kxTxkMNfm X5ANFj9ooAKyR9aYrqF87JOC4otc6S0uCtoi1JgSt+2JvMaykXfrTbA4MY1AQNjR9SLL hr3L3iy5klsKSyS2+1iGJSvBhqNNxtj93dsZzz/3xJRJU9wsS2N/Z4Es29nT5glhO13G Nv3JG5Wf6zkcfvJKCAkFd8c0Gse9cHp5Zh/be328kdSvgyg9upZa4/oD95A8mZpS29Cy WFHEVKQ+NJO5omFkb9HsIovz4jh7lYsu2yEpU3mufVSMCvZDNTq5x9e2E6rCV/Ei750a 6wLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b="Wgt/xpFV"; 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 z17si2265665edr.452.2021.07.20.10.38.54; Tue, 20 Jul 2021 10:39:18 -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=@yahoo.com header.s=s2048 header.b="Wgt/xpFV"; 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 S230333AbhGTQ4A (ORCPT + 99 others); Tue, 20 Jul 2021 12:56:00 -0400 Received: from sonic317-38.consmr.mail.ne1.yahoo.com ([66.163.184.49]:37934 "EHLO sonic317-38.consmr.mail.ne1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231707AbhGTQzh (ORCPT ); Tue, 20 Jul 2021 12:55:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1626802575; bh=/n4LHbi3giDTHUJ42v1q1asZS5RAbQcZRXb2VVdslD4=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject:Reply-To; b=Wgt/xpFV5tuefVsymw7gPCjaSZtzPh/sF21v0n2h/EkocXYSTiGNaeXGvA66rn7ARC+507F/sQr32BO3cAauKBWJO8h/oLZwgh4kDoEo7hY6YTKXAh1yZ4Cp4wFO3BPDgWS7KKk68HvRBsI5DZyLcxxHggECgMnNf54wTMCS8j5KUqJvsrU/5SZqHOQqBtp+jBqtX9l0nj+t5P0tIegrHnJMdSnYZiLbjDo8mo/pF6WJo8QDzULddx6EpvvwhWhhbUHMz/VMStnFU0Bd4Wo5fAwXLwuJlYmzXrfdwM9MENxVLSwtpBl2U+UJrqFPvsP9g/p1j1luWGl3vDOgOkOxKg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1626802575; bh=uUX4AZucpnuNia28nvRAdRggvtAF3TeXJP+RZySznpx=; h=X-Sonic-MF:Subject:To:From:Date:From:Subject; b=e+blWEEH4e+rkogNHcD7P2K+pfITUFG4wDT9gVFDhyRvgJA9VZj8hdiqC5jyevBdqSIud0LbG0+tUmWs/f15rmxHaoApNbZ0Xw/9Ntj3tiQGdk7bt/4tCzNGmvzGipSZBmu1zR+cTb7XYamI4Jngo5ehaji/aY5dIMt9FfSyU8cga7na56mbXKXD/AgzPfLQ3mjGCYTlhb+OuvV/ZGdn1bEKH2MLoUD/OmAsw/0FGI9BZp/4myL6pKIv+87HeV41z9vL0V3rpeshNQmjlLTye7qgRniSoTt/LhkxMLeVrllUfJnLoQx10flNKklTm2v+RW92b+EtfREBLbSF9G4nZg== X-YMail-OSG: 8zvGT34VM1nnj.d4yp7rCGAKoTsoO0d8jCWlYqi305uCFc7MTeGWkMJdPkiC340 NJ6YQNIM7xByqQPsd0lKAtZhzUCKTxh68wM2ThYOCUKYhZIiYYm6wvTUPBmV27hsXmd.fNSfHoG_ 0Uz7lSImZ2.8H87CxzCqujjfIEPZsrhAGWphDdCkW1yvDHxql9feVvAaYKgq7ifQRtEyNHyjgQou r1ShJcPyUiVLOIhecIKXWpa.SYuZo8CQonKX6pCHTp1_wjp_RXLP1dPFmQ5w1gQoHZRslwZlcWTX B8.4jFM2WCG28ZgP3xMIk9_zDlyjvGRheGSYxDMYT3cuS_tDOLEe0wsU_WLk5rPbujVxkDqs3_Cu LYS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hNzBF_HjJat9J1IF3dxUfEeqFYgbsnXQXQAuIkJ59TYHFwETsp65o25LF a4o9WvYGHG5OYG99lKw7.17e2I.XFU9OYmoqV.gTnDVwM1FhXlA4.wxjm_K7rSl9BVifc0ILRYCn qDvnArCtgq5yO7OHkg2q.t.ttUaiaM9.FmlmtmiO_EEyD0Bid54L4lhGfPNWMBzEHxNgB3sO.5dB LuPrX3RIxJ0cF96wH6tMAZq8XY2nLh.TB6idkfpRBsNrip28gE0YJ78y0Wjj4pURnEY89esDPC2D kTFLMGPNh0mpqYC.T7fEAiX9.csVUDIE47hKQn7ylPSiE6MS65GLGtjagfOgQIfxa9ZgmYAC2KQ3 .ILQJTpdV_twjvIAYKBP0hiadYf_djkS7YXEuBXzZeGY- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Tue, 20 Jul 2021 17:36:15 +0000 Received: by kubenode540.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 5e3fa3b560ad2290259806a07b8a0230; Tue, 20 Jul 2021 17:36:13 +0000 (UTC) Subject: Re: [PATCH] smack: mark 'smack_enabled' global variable as __initdata To: Austin Kim , jmorris@namei.org, serge@hallyn.com Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@lge.com, Casey Schaufler References: <20210629134144.GA1168@raspberrypi> From: Casey Schaufler Message-ID: Date: Tue, 20 Jul 2021 10:36:12 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210629134144.GA1168@raspberrypi> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Mailer: WebService/1.1.18469 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1302 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/29/2021 6:41 AM, Austin Kim wrote: > From: Austin Kim > > Mark 'smack_enabled' as __initdata > since it is only used during initialization code. > > Signed-off-by: Austin Kim Added to Smack next. > --- > security/smack/smack.h | 2 +- > security/smack/smack_lsm.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/security/smack/smack.h b/security/smack/smack.h > index c3cfbdf4944a..99c3422596ab 100644 > --- a/security/smack/smack.h > +++ b/security/smack/smack.h > @@ -302,7 +302,7 @@ int smack_populate_secattr(struct smack_known *skp); > /* > * Shared data. > */ > -extern int smack_enabled; > +extern int smack_enabled __initdata; > extern int smack_cipso_direct; > extern int smack_cipso_mapped; > extern struct smack_known *smack_net_ambient; > diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c > index 223a6da0e6dc..cacbe7518519 100644 > --- a/security/smack/smack_lsm.c > +++ b/security/smack/smack_lsm.c > @@ -54,7 +54,7 @@ > static DEFINE_MUTEX(smack_ipv6_lock); > static LIST_HEAD(smk_ipv6_port_list); > struct kmem_cache *smack_rule_cache; > -int smack_enabled; > +int smack_enabled __initdata; > > #define A(s) {"smack"#s, sizeof("smack"#s) - 1, Opt_##s} > static struct {