]> git.karo-electronics.de Git - linux-beck.git/blobdiff - security/selinux/ss/services.c
selinux: fix labeling of /proc/net inodes
[linux-beck.git] / security / selinux / ss / services.c
index f83b19daed16181a86ede00b8d1455432f05acec..4bf715d4cf29e2090ab2d7d97b346a5e4087f9dd 100644 (file)
@@ -1744,6 +1744,9 @@ int security_genfs_sid(const char *fstype,
        struct ocontext *c;
        int rc = 0, cmp = 0;
 
+       while (path[0] == '/' && path[1] == '/')
+               path++;
+
        POLICY_RDLOCK;
 
        for (genfs = policydb.genfs; genfs; genfs = genfs->next) {