diff --git a/selinux/selinux.go b/selinux/selinux.go index 28bc405a..e2cdec93 100644 --- a/selinux/selinux.go +++ b/selinux/selinux.go @@ -34,7 +34,6 @@ const ( var ( assignRegex = regexp.MustCompile(`^([^=]+)=(.*)$`) - spaceRegex = regexp.MustCompile(`^([^=]+) (.*)$`) mcsList = make(map[string]bool) selinuxfs = "unknown" selinuxEnabled = false // Stores whether selinux is currently enabled @@ -269,10 +268,6 @@ func mcsDelete(mcs string) { mcsList[mcs] = false } -func mcsExists(mcs string) bool { - return mcsList[mcs] -} - func IntToMcs(id int, catRange uint32) string { var ( SETSIZE = int(catRange)