Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id t8NJWXHg022637 for ; Wed, 23 Sep 2015 15:32:33 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id C25392FAA64 for ; Wed, 23 Sep 2015 19:32:29 +0000 (UTC) Received: from sifl.localnet (vpn-59-26.rdu2.redhat.com [10.10.59.26]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8NJWTvj010612 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 23 Sep 2015 15:32:29 -0400 From: Paul Moore To: selinux@tycho.nsa.gov Subject: Re: [RFC PATCH] selinux: change CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE default Date: Wed, 23 Sep 2015 15:32:28 -0400 Message-ID: <2085395.LGiPHuVovV@sifl> In-Reply-To: <20150921193434.11997.2963.stgit@localhost> References: <20150921193434.11997.2963.stgit@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: On Monday, September 21, 2015 03:34:34 PM Paul Moore wrote: > Change the SELinux checkreqprot default value to 0 so that SELinux > performs access control checking on the actual memory protections > used by the kernel and not those requested by the application. > > Signed-off-by: Paul Moore > --- > security/selinux/Kconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) FYI, I just merged this into selinux#next. > diff --git a/security/selinux/Kconfig b/security/selinux/Kconfig > index bca1b74..8691e92 100644 > --- a/security/selinux/Kconfig > +++ b/security/selinux/Kconfig > @@ -78,7 +78,7 @@ config SECURITY_SELINUX_CHECKREQPROT_VALUE > int "NSA SELinux checkreqprot default value" > depends on SECURITY_SELINUX > range 0 1 > - default 1 > + default 0 > help > This option sets the default value for the 'checkreqprot' flag > that determines whether SELinux checks the protection requested > @@ -92,7 +92,7 @@ config SECURITY_SELINUX_CHECKREQPROT_VALUE > 'checkreqprot=' boot parameter. It may also be changed at runtime > via /selinux/checkreqprot if authorized by policy. > > - If you are unsure how to answer this question, answer 1. > + If you are unsure how to answer this question, answer 0. > > config SECURITY_SELINUX_POLICYDB_VERSION_MAX > bool "NSA SELinux maximum supported policy format version" -- paul moore security @ redhat