Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1010966rdb; Fri, 20 Oct 2023 06:13:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFMpw0pjfe8NKfYspzQj4lEHQho5YRF1em2u6Y3Zp4X0MS52Ar8vIzFK2UlsUJex0UERtfd X-Received: by 2002:a05:6a21:7782:b0:16b:7f7d:8364 with SMTP id bd2-20020a056a21778200b0016b7f7d8364mr1738032pzc.58.1697807601308; Fri, 20 Oct 2023 06:13:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697807601; cv=none; d=google.com; s=arc-20160816; b=td8jviCtxIynWQlGSPxo9cm+0cQeRaaxAxxL/E8nMZWwPeG5YxkBBXxctTr8UwDHGI wiu6AAyVbLchp5le93nNNsv7gdBioSY3rro0d7yx+WEbgZmxdvSxvbxS/QzLIY2W3gk7 qDxRi8FFY0/9jSuEjJ/+NpWhuf1nnsC+/CuLP4TRQRhfbpsk27Oxl7LTA3ZcFOaanc4I TGYvvbhjVgpztu5S32NCwSD8TfOpQnAztK7VaJ+gmXf4RysobXkr6zzO0kxfXUI/2+LY KL1RejthN2eX4/LOqeBA5O4cjbKnylypfNJlVmNw2tH2PmsJ4ZhUG5FFhyA80CDhaDkH XNYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3MCWeKy+wSqkSoYRSnZTFtPUzUzz3ypdy/PLZ0z6Jf0=; fh=DOk7HndSYDbC/P2JjzxXJ0zR2bZJ5Tuc1PDCi5uc6jQ=; b=Fcu2sacrdKRzjloyraGprhEK9niPCJ8OrvLDOXnY/7sPQnqLbOK11w2sNTW6s1PUOJ TPtBsTVwhsY5nmkMha8Pz8tx+LYx6Y9tHQYxtTTNCSMvXZeaXnhYSZ8sfGEcq6WRtW89 2O5E7YRHDDorDw7u1oJBeQD+kKtsGIDadjT8YAUsUZREuloMD7QEQERmTbGt34f96LKL 6QDlBZG1g5/1j6I9XC3HTKnyFzW93VOpzPtbPL5c0ydm7Z/6fU8Ag4FlkYfaJbaaU/6R tjVRpOJu51qTvncPxgC7IlgeUn1YBAflclv52hW9f1LpvR9ziKjXHHjtwVHqCboT9yox RESg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="iR/1qWGC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id ob17-20020a17090b391100b0027916d248bbsi2061959pjb.162.2023.10.20.06.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 06:13:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="iR/1qWGC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B28CB8307C30; Fri, 20 Oct 2023 06:13:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377332AbjJTNNM (ORCPT + 99 others); Fri, 20 Oct 2023 09:13:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377002AbjJTNNL (ORCPT ); Fri, 20 Oct 2023 09:13:11 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ED2F19E; Fri, 20 Oct 2023 06:13:10 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB1A6C433C8; Fri, 20 Oct 2023 13:13:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697807589; bh=3v3w9N11nD6FfXU/AHmloGedz/Yr2LLf3n2MT+5UOQg=; h=From:To:Cc:Subject:Date:From; b=iR/1qWGCigk5mb+sUX+mtTgr+F11ZN3V1hOM3Q4nAK8r5fYeUto4kpybOnNrQq5Vb nshaIcQcOuDGRRbKWlux8REmv7fgL2opspPCPRrvwwW6F959E0hywgJzEPcS3ovRrv uaD7h/HL286fyaHjuucPf9LSoyu9lQXoKiQV/VUexU7JbOPAfHiZVE606VAuTidV+E n+Kt2TRA0my61BWCkw9OTaCj+UWq3S8yBiSlLLqUp78+HnuuygqYh/vm48iUhXV3+W BbLxxZgaEPWflBfgu+OPwmZs4zxlIqn4GWfiWRZWEPkkWoU0ROZ+r5eUDua9u7URsh 8u01+wfH6W4yw== From: Arnd Bergmann To: John Johansen , Paul Moore , James Morris , "Serge E. Hallyn" , Georgia Garcia Cc: Arnd Bergmann , Khadija Kamran , Casey Schaufler , Christian Brauner , Luis Chamberlain , apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] apparmor: mark new functions static Date: Fri, 20 Oct 2023 15:12:57 +0200 Message-Id: <20231020131303.785906-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 20 Oct 2023 06:13:18 -0700 (PDT) From: Arnd Bergmann Two new functions were introduced as global functions when they are only called from inside the file that defines them and should have been static: security/apparmor/lsm.c:658:5: error: no previous prototype for 'apparmor_uring_override_creds' [-Werror=missing-prototypes] security/apparmor/lsm.c:682:5: error: no previous prototype for 'apparmor_uring_sqpoll' [-Werror=missing-prototypes] Fixes: c4371d90633b7 ("apparmor: add io_uring mediation") Signed-off-by: Arnd Bergmann --- security/apparmor/lsm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c index 91ff91cf1aaef..4981bdf029931 100644 --- a/security/apparmor/lsm.c +++ b/security/apparmor/lsm.c @@ -655,7 +655,7 @@ static int profile_uring(struct aa_profile *profile, u32 request, * Check to see if the current task is allowed to override it's credentials * to service an io_uring operation. */ -int apparmor_uring_override_creds(const struct cred *new) +static int apparmor_uring_override_creds(const struct cred *new) { struct aa_profile *profile; struct aa_label *label; @@ -679,7 +679,7 @@ int apparmor_uring_override_creds(const struct cred *new) * Check to see if the current task is allowed to create a new io_uring * kernel polling thread. */ -int apparmor_uring_sqpoll(void) +static int apparmor_uring_sqpoll(void) { struct aa_profile *profile; struct aa_label *label; -- 2.39.2