Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4512191pxv; Tue, 29 Jun 2021 08:41:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWCfjL+z8otIv/aDGZ+Pc9a/GFDKV187QkiAHTbGlXi+GIALMW6P1kgFP03e41YKjooeU1 X-Received: by 2002:a17:906:e108:: with SMTP id gj8mr31063850ejb.90.1624981301060; Tue, 29 Jun 2021 08:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624981301; cv=none; d=google.com; s=arc-20160816; b=DxX01tDfAoXedyjbRKj+aGIh9zr6zEDw6Yqq3ypRGIaxsDlBhi/4oXxz27OENa/8vE sa/lTNAXQ18IA8Cpq3on91XxVcenhUwDwljFsLEAeLj96U4d3nP306G+q3NKCTQR/A23 Nj8WmXl3165e2/eay0aGs/0uQGwN1ygV+hX46cbcVXZFH3LlRfhy65XLZpMDEscXeNFF La75Jee3qptLJPXrajO5i+RoV3ipF9y6gYpyWrqr+C3Jel05yLRLX2mzwUpSIM8tcWe7 yium4kz2O2fveog2CoGxWbkvlhR57SeFBCJxfNgWGCxGoNeGrZ1RONIrLeTRAWIV7mXh 05mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=ecjztdsCL8Idb2y9jlcEGJ5wyQnjg16C2snI3Rv+1Vk=; b=oPwb5qOAH7Gl0LXGZZGY3QrMYFrf4xGs2y772UBYfqURyI5q7PRU3xw7pIka0ztL2V cCpBsS0UTkHX7jBe2wjPPN5AWwaGMQGf8Zwe3nCzNYFgBY1I3CHbZqvxa8H5xnIJY+vN hwz2hhKW9MkZlY96BN8FZZHf4QbmxiGh7KSiBKEfPgKBrETp+u4JJH/N021ArTZoyS3p 07gXHlpl8xD2Zck3UPoIW9KBmtdTCVwgou+BW2x7B2lUzF4AG7FpaC+uF3V3qrsi6eZT Gk8bw42q7X+UUlGnqVud5BZ7gz2McjQBP3WaqXl5DLqyKb1geDQYHRhrie3Gkw+v/Ru8 Kb+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J29cMXne; 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 j3si17840521ejj.448.2021.06.29.08.41.18; Tue, 29 Jun 2021 08:41:41 -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=J29cMXne; 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 S234178AbhF2NoV (ORCPT + 99 others); Tue, 29 Jun 2021 09:44:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234152AbhF2NoS (ORCPT ); Tue, 29 Jun 2021 09:44:18 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E26A1C061767; Tue, 29 Jun 2021 06:41:49 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id z4so1613791plg.8; Tue, 29 Jun 2021 06:41:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=ecjztdsCL8Idb2y9jlcEGJ5wyQnjg16C2snI3Rv+1Vk=; b=J29cMXnef+QyTdsvQH6LJXpDoflmXHlZYU9hM+xHk8/sCc4AcL2n/goZMtNLlI31Nb vgkvEINjInTr7Y7NKwqT/mb3ZuXQxiu378nTJ38UPOs6tO2iCXCNfMZkDcxsseHy4rlb +Xg5K/hl4b0zjCs2UFfU4JSf/JztwH/zIk+tRJx5/sAjn8aCu/oZHcgDHeuk5LjnTv7i 8EhdYIaQL/Fd63gQpUGNuxS8TcXh1N0hE3ykPuusPjCzofX9XPjbe4d6My0eTmlk95l1 uS8d/sjiIPWVcnL11k1q6eyQnVo6UQPdz+lxdawwMQukRG/BvUMN1i2AvH/quIGoE7NJ 2p6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=ecjztdsCL8Idb2y9jlcEGJ5wyQnjg16C2snI3Rv+1Vk=; b=VqDXMrSQzlrqZNPci10S4jfOaFr1mwawhmt0Kh2TNMv7H3uKmxXB0jckoh7XuFytrs QRwEIaoZgOuklWucXSk5hUdUTMDqZxavMgHH/TpRWbgSh6tx+WEr7JxlT5aKTd35pHuq n8R5iO8Rv7Bj9jLJg00x7GalyJfGQzra/gJMps0wfkcfdK2/fdxmXMb2AycsH6Y22x9e A7lDXMw/OU2Dk/4/IJHzJTX0couUZ7zTWfq0I87EpA+61P39Bs6XUKTqJX8xjwyjLu3r PzkzNvApIebEHjOeknt/i4WBJjEyVN2pm3CBGnvaCBCnEafYqILxNTDVcd0lp6Dylv9W 8Pfw== X-Gm-Message-State: AOAM532UzKBc0wcm0tcA6BzY66SzChx0eVQfDss0XeQeMhmzblPwi7nS WyMkslbXOBKp9vWLYY25Sxs= X-Received: by 2002:a17:90b:3912:: with SMTP id ob18mr44526657pjb.178.1624974109497; Tue, 29 Jun 2021 06:41:49 -0700 (PDT) Received: from raspberrypi ([125.141.84.155]) by smtp.gmail.com with ESMTPSA id y5sm3676469pjy.2.2021.06.29.06.41.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Jun 2021 06:41:49 -0700 (PDT) Date: Tue, 29 Jun 2021 14:41:44 +0100 From: Austin Kim To: casey@schaufler-ca.com, jmorris@namei.org, serge@hallyn.com Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@lge.com, austindh.kim@gmail.com Subject: [PATCH] smack: mark 'smack_enabled' global variable as __initdata Message-ID: <20210629134144.GA1168@raspberrypi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Austin Kim Mark 'smack_enabled' as __initdata since it is only used during initialization code. Signed-off-by: Austin Kim --- 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 { -- 2.20.1