Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7607449rdb; Thu, 4 Jan 2024 01:42:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IH3BUK+0djB/xipX2lRCsuI6flM7Sx0C55s9Q8j8laqTpq3dNWHwYpq3UkvDn9JxCmYd15D X-Received: by 2002:a17:906:711a:b0:a27:c6b4:2ab4 with SMTP id x26-20020a170906711a00b00a27c6b42ab4mr85957ejj.120.1704361364986; Thu, 04 Jan 2024 01:42:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704361364; cv=none; d=google.com; s=arc-20160816; b=Z1d4tBJlX3fCfzDnR2aSKoy1MLQ4JdKK4V7boNVo70m/LroeNR9nTWhKXpwXJwLRHo Vg5wNK2Vh0NljlsUZpE8XB9vmEp48MpzkmDZ9FXGB7g7MpZ8zQSNKjXOhczfg77WjMWB SHGzxFIH2f8CIFn+p91iravUghR+jQTWbxOU1KBsYl2MVxnTtGHJUrgNN6gPEkjLY4KR BjCpDboJVaqHS26hdlDn2mu15vY7xSfqkZyol5v6kQmQqc2ZtKcrrOevd9RQZ9NQWZTw E9Op06QhjLpY3gWdecWFfF/5N4Cl9mK1gqoRF9vGEbkI9h/W4LYMtrj4+upli7F8ZShe oZEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt:from :references:cc:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=6cljl/+f8EUQwZEruoGXIe/O9Jc52PX/KTgVaK0H7VY=; fh=7gMRN6iGyLTwDeRNf+WssnwZL3Mf4LiTmnuQ5cHZru0=; b=Gj4gcYOUAmYyTyJP6j/fjlqF3mF+SeaZznUrhuqWa7FF+phvUSig4K1nnxFCIEnLYI SXBhiYbU+vxV0rQK25UMR9dDLb3dhVnpj/xKQP7yesWN/3M7iX/+UkiRvs26KgRcmA1t A693Pa4dxknaNkQGhynz9H/mHAQYdcp546sggeApOnHntU+HXjHoLmFfbDNRhJTRk1LZ mGlMClfd6MXcCyEIhSnSJdFeC16hQ7nCc47jwZB/jlnt3gR0nZqo+b36fbaF5fS5rswU t2Jkbg09padVlpZ52JQ19Wy4aI8oqzv8+GBwQgiwoShR7/QQHlTuw4utSoD7PL9ZiOHd JR4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=lC6f87rd; spf=pass (google.com: domain of linux-kernel+bounces-16458-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16458-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a4-20020a170906684400b00a2722e59c6asi7112821ejs.902.2024.01.04.01.42.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 01:42:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16458-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=lC6f87rd; spf=pass (google.com: domain of linux-kernel+bounces-16458-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16458-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 88D611F22963 for ; Thu, 4 Jan 2024 09:42:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A191E208CB; Thu, 4 Jan 2024 09:42:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="lC6f87rd" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-relay-canonical-0.canonical.com (smtp-relay-canonical-0.canonical.com [185.125.188.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFD6C208A5; Thu, 4 Jan 2024 09:42:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from [192.168.192.85] (unknown [50.39.103.33]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id D198E3F282; Thu, 4 Jan 2024 09:42:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1704361351; bh=6cljl/+f8EUQwZEruoGXIe/O9Jc52PX/KTgVaK0H7VY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lC6f87rduU+nBHxt96iJL52TwZra0XM3IttoKN0RZJJclQT5mSS39xxzSLZfepV6R 8t+PR9P8/zZfDuKJFnjru7WeLYFRmXS+E8mn45wEFa5Y27NE6BzXzYx+YcyMYGL6so PregBaRC6XeaCXclRmv4MMdn9Ed+PNA6KhISAfsYivEoX2NxB+oC3sJm9k3W9Ri6su 3wXx0izVZZYvONfRnQ689Z8LGhThC1PWyx6NSl0aLzKyuxcmS5dg8GjECgC+qzvjIc d14AKM8Tri3O+GLLcb1RIngOxoBidubeuD0enM4TRK9rR4fr9yD9/q0gCP/o5oWhXX hj5KhIA3IvXeg== Message-ID: <5daba923-de64-41c1-8706-2b77939c5e3e@canonical.com> Date: Thu, 4 Jan 2024 01:42:30 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] apparmor: make stack_msg static Content-Language: en-US To: Ben Dooks , apparmor@lists.ubuntu.com Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231122115611.285625-1-ben.dooks@codethink.co.uk> From: John Johansen Autocrypt: addr=john.johansen@canonical.com; keydata= xsFNBE5mrPoBEADAk19PsgVgBKkImmR2isPQ6o7KJhTTKjJdwVbkWSnNn+o6Up5knKP1f49E BQlceWg1yp/NwbR8ad+eSEO/uma/K+PqWvBptKC9SWD97FG4uB4/caomLEU97sLQMtnvGWdx rxVRGM4anzWYMgzz5TZmIiVTZ43Ou5VpaS1Vz1ZSxP3h/xKNZr/TcW5WQai8u3PWVnbkjhSZ PHv1BghN69qxEPomrJBm1gmtx3ZiVmFXluwTmTgJOkpFol7nbJ0ilnYHrA7SX3CtR1upeUpM a/WIanVO96WdTjHHIa43fbhmQube4txS3FcQLOJVqQsx6lE9B7qAppm9hQ10qPWwdfPy/+0W 6AWtNu5ASiGVCInWzl2HBqYd/Zll93zUq+NIoCn8sDAM9iH+wtaGDcJywIGIn+edKNtK72AM gChTg/j1ZoWH6ZeWPjuUfubVzZto1FMoGJ/SF4MmdQG1iQNtf4sFZbEgXuy9cGi2bomF0zvy BJSANpxlKNBDYKzN6Kz09HUAkjlFMNgomL/cjqgABtAx59L+dVIZfaF281pIcUZzwvh5+JoG eOW5uBSMbE7L38nszooykIJ5XrAchkJxNfz7k+FnQeKEkNzEd2LWc3QF4BQZYRT6PHHga3Rg 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EVu++ +T7sv9+iY+e0Y+SolyJgTxMYeRnDWE6S77g6gzYYHmcQOWP7ZMX+MtD4SKlf0+Q8li/F9GUL p0rw8op9f0p1+YAhyAd+dXWNKf7zIfZ2ME+0qKpbQnr1oizLHuJX/Telo8KMmHter28DPJ03 lT9Q Organization: Canonical In-Reply-To: <20231122115611.285625-1-ben.dooks@codethink.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/22/23 03:56, Ben Dooks wrote: > The stack_msg is not exported out of security/apparmor/domain.c so > make it static to avoid the following sparse warning: > > security/apparmor/domain.c:1314:12: warning: symbol 'stack_msg' was not declared. Should it be static? > > Signed-off-by: Ben Dooks thankyou for your contribution, unfortunately an the same patch went into apparmor-next on November 11 > --- > security/apparmor/domain.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c > index 89fbeab4b33b..571158ec6188 100644 > --- a/security/apparmor/domain.c > +++ b/security/apparmor/domain.c > @@ -1311,7 +1311,7 @@ static int change_profile_perms_wrapper(const char *op, const char *name, > return error; > } > > -const char *stack_msg = "change_profile unprivileged unconfined converted to stacking"; > +static const char *stack_msg = "change_profile unprivileged unconfined converted to stacking"; > > /** > * aa_change_profile - perform a one-way profile transition