Re: [PATCH]: chcon: no longer abort on SELinux disabled kernel

2009-10-07 Thread Stephen Smalley
On Wed, 2009-10-07 at 15:34 +0200, Jim Meyering wrote: > Stephen Smalley wrote: > > > On Wed, 2009-10-07 at 14:48 +0200, Jim Meyering wrote: > >> Stephen Smalley wrote: > >> ... > >> > FWIW, there is a subtle difference here: > >> > - chcon

Re: [PATCH]: chcon: no longer abort on SELinux disabled kernel

2009-10-07 Thread Stephen Smalley
On Wed, 2009-10-07 at 14:48 +0200, Jim Meyering wrote: > Stephen Smalley wrote: > ... > > FWIW, there is a subtle difference here: > > - chcon can in fact work on a SELinux-disabled kernel, as you can still > > set the security.* extended attributes as long as the filesyst

Re: [PATCH]: chcon: no longer abort on SELinux disabled kernel

2009-10-07 Thread Stephen Smalley
On Tue, 2009-10-06 at 10:14 +0200, Jim Meyering wrote: > Jim Meyering wrote: > > Stephen Smalley wrote: > > ... > >> Must have previously booted an ancient kernel with SELinux permissive > >> and no policy loaded. Kernel was fixed by the commit below in 2006. &

Re: [PATCH]: chcon: no longer abort on SELinux disabled kernel

2009-10-05 Thread Stephen Smalley
e commit below in 2006. I'd recommend that he run the following to clean up the droppings in his filesystem: find / \( -fstype ext2 -o -fstype ext3 -o -fstype ext4 \) -exec setfattr -x security.selinux {} \; commit 8aad38752e81d1d4de67e3d8e2524618ce7c9276 Author: Stephen Smalley Date: Wed M

Re: should GNU install call matchpathcon by default?

2008-05-21 Thread Stephen Smalley
e. > > However, the underlying problem still needs to be dealt with: > the outrageous expense of the matchpathcon function. > Is anyone planning to address that? There have been a number of small optimizations made over time, and we keep looking for other ways to improve the situation. T

Re: should GNU install call matchpathcon by default?

2008-05-20 Thread Stephen Smalley
/* If there's an error determining the context, or it has none, > return to allow default context */ >if ((matchpathcon (file, st.st_mode, &scontext) != 0) || This issue came up recently again, see: https://bugzilla.redhat.com/show_bug.cgi?id=447410 It appears that the p