More specific SELinux detection
This commit is contained in:
		@@ -28,7 +28,7 @@ def selinux_fixup(path):
 | 
				
			|||||||
    """
 | 
					    """
 | 
				
			||||||
    Fix OpenVPN credential store security context on Fedora
 | 
					    Fix OpenVPN credential store security context on Fedora
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
    if os.path.exists("/usr/bin/chcon"):
 | 
					    if os.path.exists("/usr/bin/chcon") and os.path.exists("/sys/fs/selinux"):
 | 
				
			||||||
        cmd = "chcon", "--type=home_cert_t", path
 | 
					        cmd = "chcon", "--type=home_cert_t", path
 | 
				
			||||||
        subprocess.call(cmd)
 | 
					        subprocess.call(cmd)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user