Date: Tue, 14 Feb 2017 13:46:28 +1100 (AEDT) From: James Morris In-Reply-To: Message-ID: References: <201702132029.HJD35443.HFQFVOJOFLtOMS@I-love.SAKURA.ne.jp> <1487019833.9569.66.camel@tycho.nsa.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [kernel-hardening] Re: [RFC PATCH 2/4] security: mark nf ops in SELinux and Smack as __ro_after_init To: Casey Schaufler Cc: Stephen Smalley , Kees Cook , Tetsuo Handa , linux-security-module , "kernel-hardening@lists.openwall.com" , Paul Moore List-ID: On Mon, 13 Feb 2017, Casey Schaufler wrote: > On 2/13/2017 2:26 PM, James Morris wrote: > > On Mon, 13 Feb 2017, Casey Schaufler wrote: > > > >> If we changed CONFIG_SECURITY_SELINUX_DISABLE to > >> CONFIG_SECURITY_DYNAMIC_MODULES and put the __ro_after_init > >> under !CONFIG_SECURITY_DYNAMIC_MODULES we solve both the > >> current and potential future issues. > > We don't need to solve issues which don't exist and ideally will not > > exist. > > > There is a problem with CONFIG_SECURITY_SELINUX_DISABLE > and __ro_after_init that does exist. Whether the possible > future issue should or shouldn't exist has no bearing on > the existing issue. It's true that we don't need to change > CONFIG_SECURITY_SELINUX_DISABLE to CONFIG_SECURITY_DYNAMIC_MODULES > to solve the current problem. I suggest that we leave that > change to the separate debate on loadable security modules. Agreed. -- James Morris