From patchwork Fri Aug 4 03:46:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiu Jianfeng X-Patchwork-Id: 13341195 X-Patchwork-Delegate: paul@paul-moore.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BAB3AC001DE for ; Fri, 4 Aug 2023 03:48:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229527AbjHDDsn (ORCPT ); Thu, 3 Aug 2023 23:48:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232530AbjHDDsa (ORCPT ); Thu, 3 Aug 2023 23:48:30 -0400 Received: from dggsgout12.his.huawei.com (dggsgout12.his.huawei.com [45.249.212.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5867B421E for ; Thu, 3 Aug 2023 20:48:27 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4RHBWn3r7fz4f3kp3 for ; Fri, 4 Aug 2023 11:48:21 +0800 (CST) Received: from huaweicloud.com (unknown [10.67.174.26]) by APP2 (Coremail) with SMTP id Syh0CgBX_usIdcxk0RPPPQ--.45707S4; Fri, 04 Aug 2023 11:48:24 +0800 (CST) From: Xiu Jianfeng To: paul@paul-moore.com, stephen.smalley.work@gmail.com, eparis@parisplace.org Cc: selinux@vger.kernel.org, xiujianfeng@huawei.com Subject: [PATCH -next] selinux: update comment on selinux_hooks[] Date: Fri, 4 Aug 2023 03:46:52 +0000 Message-Id: <20230804034652.281266-1-xiujianfeng@huaweicloud.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.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k3tpzhluzxrxghudrp/ X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org From: Xiu Jianfeng After commit f22f9aaf6c3d ("selinux: remove the runtime disable functionality"), the comment on selinux_hooks[] is out-of-date, remove the last paragraph about runtime disable functionality. Signed-off-by: Xiu Jianfeng --- security/selinux/hooks.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 2906fdaf7371..d0da19add17e 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -6961,10 +6961,6 @@ static int selinux_uring_cmd(struct io_uring_cmd *ioucmd) * hooks ("allocating" hooks). * * Please follow block comment delimiters in the list to keep this order. - * - * This ordering is needed for SELinux runtime disable to work at least somewhat - * safely. Breaking the ordering rules above might lead to NULL pointer derefs - * when disabling SELinux at runtime. */ static struct security_hook_list selinux_hooks[] __ro_after_init = { LSM_HOOK_INIT(binder_set_context_mgr, selinux_binder_set_context_mgr),