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 w1GKo2gG026863 for ; Fri, 16 Feb 2018 15:50:02 -0500 To: Paul Moore Cc: Stephen Smalley , selinux@tycho.nsa.gov, peter.enderborg@sony.com References: <20180216171950.4344-1-sds@tycho.nsa.gov> <35c7d386-f856-0b4c-0e17-e959e79f0b05@schaufler-ca.com> <1a47f052-5def-7b50-5fbf-c57cd5293bc3@schaufler-ca.com> From: Casey Schaufler Message-ID: <808aca8e-9f9f-4360-270d-05946d24f77e@schaufler-ca.com> Date: Fri, 16 Feb 2018 12:49:09 -0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Subject: Re: [PATCH] selinux: wrap global selinux state List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: On 2/16/2018 11:39 AM, Paul Moore wrote: > On Fri, Feb 16, 2018 at 1:52 PM, Casey Schaufler wrote: >> On 2/16/2018 10:40 AM, Paul Moore wrote: >>> On Fri, Feb 16, 2018 at 12:44 PM, Casey Schaufler >>> wrote: >>>> On 2/16/2018 9:19 AM, Stephen Smalley wrote: >>>>> Define a selinux state structure (struct selinux_state) for >>>>> global SELinux state and pass it explicitly to all security server >>>>> functions. >>>> If you're already changing the security server APIs >>>> wholesale it would be delightful if you could change the >>>> prefix used from "security_" to something that doesn't >>>> clash with the LSM infrastructure. It might seem cosmetic >>>> if you're working inside SELinux, but over the past few >>>> years while I've been working on the LSM stacking the >>>> clash has driven me batty on multiple occasions. I have >>>> discussed this with Paul in the past, and he wasn't eager >>>> to take patches that were just name changes. I certainly >>>> see that position. But, since you're changing the APIs >>>> anyway, there won't be a better time to do this. I'm >>>> batty enough as it is. >>> Yes, there is a better time to change this, and it's the same time as >>> when we last talked about it. We can look at changing the functions >>> when we tackle the bigger issue of (re)examining the boundary between >>> the SELinux LSM hooks and the SELinux security server. >> I'm not convinced. > Okay, that's your right. Just know that I've heard your opinion and I > disagree with your evaluation. Fair enough. > As you surely know by now, this job > requires some subjective judgement calls from time to time, which is > what I'm doing here. Counter opinions are always welcome, but please > recognize when I've made up my mind. I can see that you've made up your mind, and honestly can't fault your position. > > I try not to shout too loudly about all the things I believe you are > doing wrong with Smack, I have never considered your feedback to be presented too loudly. > I would appreciate the same consideration. Sorry if I came across as shouting. It wasn't my intention. > >> Recent discussions on this list indicate that >> isn't going to happen, that the existing boundary is here to stay. >> It also may not result in changing *all* the interfaces, like this >> one does. It seems convenient to do it now. Thought I'd ask. > You did ask, which is fine. I said "no", and you told me I was wrong, > which is also okay, but it's time to move on. Yup. > > >From my perspective the rename would only serve to muddy a fairly > large change, and I wont accept it right now. Despite what you may > have taken from my conversation with Stephen, I remain convinced that > (re)evaluating the SELinux hooks/ss boundary is a worthwhile exercise; > it will not likely result in a total merge, but I believe there is > still the potential for a significant change, and that will be the > Right Time. OK, thanks for keeping the concern in mind.