Re: [PATCH] selinux: wrap global selinux state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/16/2018 11:39 AM, Paul Moore wrote:
> On Fri, Feb 16, 2018 at 1:52 PM, Casey Schaufler <casey@xxxxxxxxxxxxxxxx> wrote:
>> On 2/16/2018 10:40 AM, Paul Moore wrote:
>>> On Fri, Feb 16, 2018 at 12:44 PM, Casey Schaufler
>>> <casey@xxxxxxxxxxxxxxxx> 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.





[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux