From patchwork Fri Jul 21 12:28:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 123843 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp194503vqg; Fri, 21 Jul 2023 06:11:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlET+/H25JPtx34gkNuLcYNKwDE8JGQH56MAE5co90QWNCAxcyti7muJrPSmcbEqv2rPskW3 X-Received: by 2002:a2e:b055:0:b0:2b6:d495:9467 with SMTP id d21-20020a2eb055000000b002b6d4959467mr1501056ljl.6.1689945098881; Fri, 21 Jul 2023 06:11:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689945098; cv=none; d=google.com; s=arc-20160816; b=DVY/BX5XfMaEcfmyw4fK1vV8e7azweI1USrcqdGAkdUVAkI0xHkbday7ZwOOs5AbxJ 1V7jvOh4xCwSRhqMcw2gFi7BCArTrKl+FG28NbBRbEAEvmMuJshxQh/2b5A9rQVsyFvY NqxgYtjnn9LdctZi46j/TrMgwGWOk8OhVu+uW5ubkGJs5rD5bCmkN75a3VpUAYiN+8dV 7D4zOmd9YijH73BJ/hU8ik++QwViBtPFFleKGyMS6ppkih06VZBoBgBs+DhCmv96JC7h 5vl3RdBGNuYZD4D4uogh/+vuNSDfXoZOmqRUmgmb1ah4AiERDTW3NclDj/RnIFakIFOk ySdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=e0HvaNsHRdg5SCBMV0Uow5C6kuN3LvnSU+TdPZJ9mEo=; fh=iDgWuXgSHR7xlV1i5YlWI1nFUnlGslvACAKcdwUiyEs=; b=blgaC6b/gM+lGU8UOmQDAglu2qr5ZbidxcRwfczor+Zz8jv1RoonVBu+P+LPpfyewd U/cET+E8vUSK+iVa3XF29PLl9AIFa24hwRttDrnsWD3Ria8c+hlKvy7qd/ZgWsUMjpDi XQ/LRyiHN4r25NZT2+KL7O8uHN1YZ4ZMExuzGSKdIIPnONNuv1Gi9lgcSxEQrols3ntC aNtSzImdxwuGU6OSsJUl4/Jkj9ngg8lVvN40wQKcPrWKZf6s9uWA/+Cf3kqyKdBIXq9q sVjqmwBBTqkwCBe4kINa0AkgwuftP0edeeJuDJQfhU7Eb8VxvKraHAevZ62L972w5ttj y0nA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ja6-20020a170907988600b0099b42c90831si2126955ejc.512.2023.07.21.06.10.57; Fri, 21 Jul 2023 06:11:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230346AbjGUM27 (ORCPT + 99 others); Fri, 21 Jul 2023 08:28:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbjGUM26 (ORCPT ); Fri, 21 Jul 2023 08:28:58 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09EFE19B3 for ; Fri, 21 Jul 2023 05:28:55 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R6pfz3Z3WzNmLn; Fri, 21 Jul 2023 20:25:31 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 21 Jul 2023 20:28:52 +0800 From: YueHaibing To: , , , , CC: Subject: [PATCH -next] cred: Remove unsued extern declaration change_create_files_as() Date: Fri, 21 Jul 2023 20:28:40 +0800 Message-ID: <20230721122840.31740-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772035872210108278 X-GMAIL-MSGID: 1772035872210108278 Since commit 3a3b7ce93369 ("CRED: Allow kernel services to override LSM settings for task actions") this is never used, so can be removed. Signed-off-by: YueHaibing --- include/linux/cred.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/cred.h b/include/linux/cred.h index 9ed9232af934..f923528d5cc4 100644 --- a/include/linux/cred.h +++ b/include/linux/cred.h @@ -164,7 +164,6 @@ extern void abort_creds(struct cred *); extern const struct cred *override_creds(const struct cred *); extern void revert_creds(const struct cred *); extern struct cred *prepare_kernel_cred(struct task_struct *); -extern int change_create_files_as(struct cred *, struct inode *); extern int set_security_override(struct cred *, u32); extern int set_security_override_from_ctx(struct cred *, const char *); extern int set_create_files_as(struct cred *, struct inode *);