Message-ID: <1499949843.624.0.camel@tycho.nsa.gov> From: Stephen Smalley To: Chris PeBenito , Paul Moore Cc: selinux@tycho.nsa.gov Date: Thu, 13 Jul 2017 08:44:03 -0400 In-Reply-To: <7596a965-4283-94ae-eb34-796e5979f288@ieee.org> References: <20170710202553.20668-1-sds@tycho.nsa.gov> <1499866012.23108.3.camel@tycho.nsa.gov> <7596a965-4283-94ae-eb34-796e5979f288@ieee.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Subject: Re: [RFC][PATCH] selinux: Introduce a policy capability and permission for NNP transitions List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: On Wed, 2017-07-12 at 20:27 -0400, Chris PeBenito wrote: > On 07/12/2017 05:38 PM, Paul Moore wrote: > > On Wed, Jul 12, 2017 at 9:26 AM, Stephen Smalley > > wrote: > > > On Tue, 2017-07-11 at 17:00 -0400, Paul Moore wrote: > > > > On Mon, Jul 10, 2017 at 4:25 PM, Stephen Smalley > > > .gov> > > > > wrote: > > While I think splitting the NNP/nosuid transition restrictions > > might > > be a good idea under the new policy capability, I'm not sure it is > > worth the cost of a "process2" object class. > > > > With that in mind, let's do two things with this patch: > > > > * Mention the nosuid restrictions in the patch description.  It > > doesn't need much text, but something would be good so we have > > documentation in the git log. > > > > * Let's pick a new permission name that is not specific to NNP or > > nosuid.  IMHO, nnpnosuid_transition is ... less than good. > > Unfortunately, I'm not sure I'm much better at picking names; how > > about "protected_transition"?  "restricted_transition"? > > "enable_transition"?  "override_transition"? > > I vote for nnp_transition anyway.  "No New Privileges" encompasses  > nosuid in my mind.  If the two perms had been separated I would have  > been inclined to allow both every time one of them was needed, to > make  > sure no one was surprised by the behavior difference. I agree; I'll keep it as nnp_transition and just document it in the patch description.