selinux/policycoreutils/setfiles
Caleb Case 71178d5669 setfiles fails to relabel if selinux not enabled
Setfiles now checks the capabilities on the mounted file systems for
'seclabel' (see setfiles/setfiles.c:723:exclude_non_seclabel_mounts) on
newer kernels (>=2.6.30 see setfiles.c:734). However the 'seclabel'
feature is not available if selinux is not enabled. The result is that
setfiles silently fails to relabel any filesystems.

The patch below removes the check for seclabel if selinux is disabled.

As an alternative maybe seclabel should be available even if selinux is
disabled? It seems that whether a fs supports security labels is
independent of selinux being enabled.

Signed-off-by: Joshua Brindle <method@manicmethod.com>
2009-09-16 11:18:18 -04:00
..
Makefile setfiles converted to fts 2009-07-07 08:21:34 -04:00
restorecon.8 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
setfiles.8 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
setfiles.c setfiles fails to relabel if selinux not enabled 2009-09-16 11:18:18 -04:00