Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7736504rwl; Thu, 23 Mar 2023 08:07:26 -0700 (PDT) X-Google-Smtp-Source: AK7set8P6QMz6dDDo29VsVr8MnIGWrWPlip47CO7p+vfvJP1rhO2YjoJuBUzGCtaeFq6nz1nhCBW X-Received: by 2002:a17:90a:6a82:b0:23d:376a:c2bc with SMTP id u2-20020a17090a6a8200b0023d376ac2bcmr8779096pjj.5.1679584046195; Thu, 23 Mar 2023 08:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679584046; cv=none; d=google.com; s=arc-20160816; b=JKCWz+FOSNsMr2Kwq8h8Ef8pe2q1l+VKHLrLWnN2ukux3UeU6+41tpuhiHWsAdqylo wZhdPNVXQC0Qw1rgtuoziczf4AEQ5F4z+fDAg10bApRxTnU4EHxKUZPqD6tBP6vLwp5d H5m8rcPmWenmjRPQW98HG5U1q0ZH7FPtFBJr7OAZIv7eKMw55VTVg/PQZVA7brCY8Q68 fgFEKYXmwurYXH1GoL6LfcS6aiMtrxwAx7CIfeNsHtAVH1yR0AnMOutuEOl6CcsaZaeI lqkof+WVnDWEvBSIub1lKIe5QuM6hE5N7+Drxd7Lkn2UcD1nMjiuCTrqmNKKCq7oDMul Y56A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=gy7FFNSqm+7qYrseWG2QC5VYof+XLe7436xAkIcWYeQ=; b=yFzRjsYJH2gM9+whknLlpar+KdEQddwaqZvjrUtrE0gnEkwaPNTtKSsA/3VwzsjXb/ YVtgY5Nh1HL0cDDMvTpOmjTAr5cGwnUlzTg4QRSehneWNwVH0bSHP5ragVg8P/WCnmxR 8ZEibaH8QVKM+FUhEawu2jcVAbHkdZYJelckd0sSN/nXNhK8XGIoPxZMCZoliocCAY7A qwNi7e+h0daPxvIdHI78Rne/NmAo7E8xHdVdDM4iwf0hOh60nNJppr2Nhfctqk5usDVt +1UvEmiPVGPfZCgM4mxdU7ZvLh+NuXL3SVby/MUD7oZQ8tCAQCBx69fo8tnRGGPIylzQ Vw+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=M40xzl8c; 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=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020a170902aa4900b0019e41554031si17165403plr.628.2023.03.23.08.06.59; Thu, 23 Mar 2023 08:07:26 -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; dkim=pass header.i=@paul-moore.com header.s=google header.b=M40xzl8c; 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=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231925AbjCWOzP (ORCPT + 99 others); Thu, 23 Mar 2023 10:55:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231395AbjCWOzN (ORCPT ); Thu, 23 Mar 2023 10:55:13 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6A5D1A95A for ; Thu, 23 Mar 2023 07:55:12 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id z83so25152866ybb.2 for ; Thu, 23 Mar 2023 07:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1679583312; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gy7FFNSqm+7qYrseWG2QC5VYof+XLe7436xAkIcWYeQ=; b=M40xzl8c+0MhuyYwNiU0o2bU6jntsFNDRQ9QAyLcljW/DYOysaJEYllZYOw5l1FuI7 2S+SDEYNza+/tLyZPAyZ6mdHPyz0WELslxJFRivKSE8ybZQCE0Fz6tLKX9lxZT8ult7G Px98EB6t+qFNyxNXi8LbrBDpOr7CCUHO0raw2W+Po86WeAErVdRUlwCZ91SNtLjnHuQK aHQ0hOHi9gmjHLCtTznYUTMZ5doiVVOyXitUDRn6+Gq6r/WHz4dinjpkf658JmOmjVys gbUrxBGkHYHuG390a3tTxy7xnmXcjNf41sb3EcHqbzjQX5ov9aObcq62bcvIBcQg0S8K rHoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679583312; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gy7FFNSqm+7qYrseWG2QC5VYof+XLe7436xAkIcWYeQ=; b=X2io8+PJWEGJeS0yTffo/r3ON6nVZXti7SGrXeiogrjmcSVofXFxOoVeIdZQ2f4jl2 WW+8iCUQXWYNey0zo7GqrnOxoMxxusmINzP5yeH1DNaLsEMsFu2VCEN5/4VYNxpiLKn6 32/Qhy+HDCmElt56ukMctQX9gVZxoHjViElq1CUVUU08VujB35KpiGNFWQjIQ7k2DjZ/ nzVD1nEBM+lejWK2557d3Ax5LGReCxABoXwW+E/8jP6bqM8Ab2HXSedNWUToJ7c/d9MV TU0lZibBvZ7q7gBxmrSNAAsm7Ul31B12zD7hXysfgUxU6Xp+309gHRkWzYqoGLaJeZ7W 9sPQ== X-Gm-Message-State: AAQBX9eoHp817qpU2Ez3JqrYw1faZyhder5bUcaOppSstceLs9194lo+ zcV6rxU+8xL+r49pJ4o4C3UOcA2d8Q2ob2uINrrl X-Received: by 2002:a05:6902:1895:b0:b69:bf76:2243 with SMTP id cj21-20020a056902189500b00b69bf762243mr2423097ybb.3.1679583311921; Thu, 23 Mar 2023 07:55:11 -0700 (PDT) MIME-Version: 1.0 References: <20230323051241.24841-1-lukas.bulwahn@gmail.com> In-Reply-To: <20230323051241.24841-1-lukas.bulwahn@gmail.com> From: Paul Moore Date: Thu, 23 Mar 2023 10:55:01 -0400 Message-ID: Subject: Re: [PATCH] selinux: clean up dead code after removing runtime disable To: Lukas Bulwahn Cc: Stephen Smalley , Eric Paris , selinux@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 23, 2023 at 1:12=E2=80=AFAM Lukas Bulwahn wrote: > > Commit f22f9aaf6c3d ("selinux: remove the runtime disable functionality") > removes the config SECURITY_SELINUX_DISABLE. This results in some dead co= de > in lsm_hooks.h and a reference in the ABI documentation leading nowhere a= s > the help text is simply gone. > > Remove the dead code and dead reference. > > Signed-off-by: Lukas Bulwahn > --- > Paul, please pick this minor cleanup patch on top of your commit above. Hi Lukas, thanks for catching this and sending a patch! For future reference, you don't need to add a note asking me to pick up this patch, as long as you send it to the right mailing list - you did - I'll see it and you'll either get a quick reply when I merge it or a longer reply with comments/feedback. One comment below ... > diff --git a/Documentation/ABI/removed/sysfs-selinux-disable b/Documentat= ion/ABI/removed/sysfs-selinux-disable > index cb783c64cab3..1ae9587231e1 100644 > --- a/Documentation/ABI/removed/sysfs-selinux-disable > +++ b/Documentation/ABI/removed/sysfs-selinux-disable > @@ -24,6 +24,3 @@ Description: > SELinux at runtime. Fedora is in the process of removing the > selinuxfs "disable" node and once that is complete we will start = the > slow process of removing this code from the kernel. > - > - More information on /sys/fs/selinux/disable can be found under th= e > - CONFIG_SECURITY_SELINUX_DISABLE Kconfig option. When I moved the deprecation notice from the "obsolete" to the "removed" directory I added a note at the top which read: "REMOVAL UPDATE: The SELinux checkreqprot functionality was removed in March 2023, the original deprecation notice is shown below." My goal was to preserve the original notice as much as possible, including the references to the now defunct Kconfig option, to help people who are trying to understand how things worked prior to the removal. If you can remove this part of your patch and resubmit I'll happily merge it into the selinux/next tree. Thanks! --=20 paul-moore.com