Re: [PATCH] chcon: do not validte security context if SElinux is disable
From:
Kamil Dudka
Subject:
Re: [PATCH] chcon: do not validte security context if SElinux is disabled
Date:
Mon, 02 Dec 2019 14:32:53 +0100
On Monday, December 2, 2019 2:18:39 PM CET PƔdraig Brady wrote:
> On 02/12/2019 13:02, Kamil Dudka wrote:
> > * src/chcon.c (main): Skip call of security_check_context()
> > in case SELinux is disabled to avoid unnecessary failure.
> >
> > Bug: https://bugzilla.redhat.com/1777831
>
> Cool I'll apply that with the following changes:
> s/validte/validate/ in commit summary
Oops, I forgot to use spell checker. There was also SElinux instead
of SELinux in the subject.
> > + if (is_selinux_enabled()
>
> + if (0 < is_selinux_enabled()
Yes, thanks for the fixes!
Kamil
> cheers,
> PƔdraig