• P
    selinux: revert 102aefdd · 4d546f81
    Paul Moore 提交于
    Revert "selinux: consider filesystem subtype in policies"
    
    This reverts commit 102aefdd.
    
    Explanation from Eric Paris:
    
    	SELinux policy can specify if it should use a filesystem's
    	xattrs or not.  In current policy we have a specification that
    	fuse should not use xattrs but fuse.glusterfs should use
    	xattrs.  This patch has a bug in which non-glusterfs
    	filesystems would match the rule saying fuse.glusterfs should
    	use xattrs.  If both fuse and the particular filesystem in
    	question are not written to handle xattr calls during the mount
    	command, they will deadlock.
    
    	I have fixed the bug to do proper matching, however I believe a
    	revert is still the correct solution.  The reason I believe
    	that is because the code still does not work.  The s_subtype is
    	not set until after the SELinux hook which attempts to match on
    	the ".gluster" portion of the rule.  So we cannot match on the
    	rule in question.  The code is useless.
    Signed-off-by: NPaul Moore <pmoore@redhat.com>
    4d546f81
hooks.c 150.0 KB