Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-17 Thread Petr Lautrbach
On Wed, Sep 16, 2020 at 04:07:11PM +0200, Ondrej Mosnacek wrote: > On Thu, Sep 10, 2020 at 6:05 PM Robbie Harwood wrote: > > > > Ondrej Mosnacek writes: > > > > > James Cassell wrote: > > >> Ben Cotton wrote: > > >> > > >>>

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-16 Thread Ondrej Mosnacek
On Thu, Sep 10, 2020 at 6:05 PM Robbie Harwood wrote: > > Ondrej Mosnacek writes: > > > James Cassell wrote: > >> Ben Cotton wrote: > >> > >>> https://fedoraproject.org/wiki/Changes/Remove_Support_For_SELinux_Runtime_Disable > >>> > >>> == Summary == > >>> Remove support for SELinux runtime

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Robbie Harwood
Ondrej Mosnacek writes: > James Cassell wrote: >> Ben Cotton wrote: >> >>> https://fedoraproject.org/wiki/Changes/Remove_Support_For_SELinux_Runtime_Disable >>> >>> == Summary == >>> Remove support for SELinux runtime disable so that the LSM hooks can >>> be hardened via

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Ondrej Mosnacek
On Thu, Sep 10, 2020 at 4:05 PM Michal Schorm wrote: > On Thu, Sep 10, 2020 at 3:58 PM Ondrej Mosnacek wrote: > > On Thu, Sep 10, 2020 at 3:48 PM Michal Schorm wrote: > > > Does this mean, the "setenforce 0" won't work anymore? > > No, no, don't worry, "setenforce 0" (i.e. switching SELinux to

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Petr Lautrbach
On Thu, Sep 10, 2020 at 03:46:38PM +0200, Michal Schorm wrote: > Does this mean, the "setenforce 0" won't work anymore? No, setenforce will not be affected by this change. > I use it quite a lot to examine the denials and audit2allow to > generate updated rules which fixes my issues. > > I

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Michal Schorm
On Thu, Sep 10, 2020 at 3:58 PM Ondrej Mosnacek wrote: > On Thu, Sep 10, 2020 at 3:48 PM Michal Schorm wrote: > > Does this mean, the "setenforce 0" won't work anymore? > No, no, don't worry, "setenforce 0" (i.e. switching SELinux to > "Permissive" mode) would not be affected and would work as

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Ondrej Mosnacek
On Thu, Sep 10, 2020 at 3:48 PM Michal Schorm wrote: > Does this mean, the "setenforce 0" won't work anymore? No, no, don't worry, "setenforce 0" (i.e. switching SELinux to "Permissive" mode) would not be affected and would work as before. The proposal is only about fully disabling SELinux.

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Ondrej Mosnacek
On Thu, Sep 10, 2020 at 2:28 PM Richard Hughes wrote: > On Thu, 10 Sep 2020 at 12:38, Neal Gompa wrote: > > Because Red Hat customers put the SELinux policy developers into > > no-win situations: they complain about AVC denials that don't actually > > significantly break anything in *their* app

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Michal Schorm
Does this mean, the "setenforce 0" won't work anymore? I use it quite a lot to examine the denials and audit2allow to generate updated rules which fixes my issues. I would see the inability of such workflow as a major drawback for *anyone* who doesn't just consume the default configuration. e.g.

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Petr Lautrbach
On Wed, Sep 09, 2020 at 10:24:00AM +0200, Vít Ondruch wrote: > Generally, I would appreciate if the proposal was more readable to > casual Fedora user/developer. I don't think there is clearly described > the current state and what is going to be changed. Also, there is a lot > of unclear

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Mauricio Tavares
On Thu, Sep 10, 2020 at 7:38 AM Neal Gompa wrote: > > On Thu, Sep 10, 2020 at 7:33 AM Richard Hughes wrote: > > > > On Thu, 10 Sep 2020 at 10:17, Tom Hughes wrote: > > > > Speaking from personal experience, I've wasted days over the last > > > > decade trying to debug a locally installed system

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Richard Hughes
On Thu, 10 Sep 2020 at 12:38, Neal Gompa wrote: > Because Red Hat customers put the SELinux policy developers into > no-win situations: they complain about AVC denials that don't actually > significantly break anything in *their* app My response to that would be to ship a "AVC ignore-list"

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Neal Gompa
On Thu, Sep 10, 2020 at 7:33 AM Richard Hughes wrote: > > On Thu, 10 Sep 2020 at 10:17, Tom Hughes wrote: > > > Speaking from personal experience, I've wasted days over the last > > > decade trying to debug a locally installed system service that was not > > > working where there were no

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Richard Hughes
On Thu, 10 Sep 2020 at 10:17, Tom Hughes wrote: > > Speaking from personal experience, I've wasted days over the last > > decade trying to debug a locally installed system service that was not > > working where there were no messages in any of the logs (e.g. no AVCs) > > -- and turning off

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Ondrej Mosnacek
On Thu, Sep 10, 2020 at 11:18 AM Tom Hughes via devel wrote: > On 10/09/2020 09:44, Richard Hughes wrote: > > On Tue, 8 Sep 2020 at 16:29, Ben Cotton wrote: > >> NOTE: Runtime disable is considered deprecated by upstream, and using > >> it will become increasingly painful (e.g.

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Ondrej Mosnacek
On Thu, Sep 10, 2020 at 11:18 AM Florian Weimer wrote: > * Ben Cotton: > > > https://fedoraproject.org/wiki/Changes/Remove_Support_For_SELinux_Runtime_Disable > > > > == Summary == > > Remove support for SELinux runtime disable so that the LSM hooks can > > be hardened via

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Tom Hughes via devel
On 10/09/2020 09:44, Richard Hughes wrote: On Tue, 8 Sep 2020 at 16:29, Ben Cotton wrote: NOTE: Runtime disable is considered deprecated by upstream, and using it will become increasingly painful (e.g. sleeping/blocking) through future kernel releases until eventually it is removed completely.

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Florian Weimer
* Ben Cotton: > https://fedoraproject.org/wiki/Changes/Remove_Support_For_SELinux_Runtime_Disable > > == Summary == > Remove support for SELinux runtime disable so that the LSM hooks can > be hardened via read-only-after-initialization protections. > > Migrate users to using ''selinux=0'' if they

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Richard Hughes
On Tue, 8 Sep 2020 at 16:29, Ben Cotton wrote: > NOTE: Runtime disable is considered deprecated by upstream, and using > it will become increasingly painful (e.g. sleeping/blocking) through > future kernel releases until eventually it is removed completely. Speaking from personal experience,

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-10 Thread Ondrej Mosnacek
Hi James, On Tue, Sep 8, 2020 at 8:43 PM James Cassell wrote: > On Tue, Sep 8, 2020, at 11:28 AM, Ben Cotton wrote: > > https://fedoraproject.org/wiki/Changes/Remove_Support_For_SELinux_Runtime_Disable > > > > == Summary == > > Remove support for SELinux runtime disable so that the LSM hooks can

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-09 Thread Vít Ondruch
Generally, I would appreciate if the proposal was more readable to casual Fedora user/developer. I don't think there is clearly described the current state and what is going to be changed. Also, there is a lot of unclear terminology, e.g. I don't have idea what are "LSM hooks". "Migrate users to

Re: F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-08 Thread James Cassell
On Tue, Sep 8, 2020, at 11:28 AM, Ben Cotton wrote: > https://fedoraproject.org/wiki/Changes/Remove_Support_For_SELinux_Runtime_Disable > > == Summary == > Remove support for SELinux runtime disable so that the LSM hooks can > be hardened via read-only-after-initialization protections. > >

F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-08 Thread Ben Cotton
https://fedoraproject.org/wiki/Changes/Remove_Support_For_SELinux_Runtime_Disable == Summary == Remove support for SELinux runtime disable so that the LSM hooks can be hardened via read-only-after-initialization protections. Migrate users to using ''selinux=0'' if they want to disable SELinux.

F34 Change proposal: Remove support for SELinux runtime disable (System-Wide Change)

2020-09-08 Thread Ben Cotton
https://fedoraproject.org/wiki/Changes/Remove_Support_For_SELinux_Runtime_Disable == Summary == Remove support for SELinux runtime disable so that the LSM hooks can be hardened via read-only-after-initialization protections. Migrate users to using ''selinux=0'' if they want to disable SELinux.