selinux: remove userland security class and permission definitions
[sfrench/cifs-2.6.git] / security / selinux / ss / services.c
index 8ee4aaef109433a78ee5776ac9edd88d7af30be2..d3698568a213b0a7142f3a3e7af85e74a3d53b62 100644 (file)
@@ -1049,6 +1049,8 @@ static int validate_classes(struct policydb *p)
 
        for (i = 1; i < kdefs->cts_len; i++) {
                def_class = kdefs->class_to_string[i];
+               if (!def_class)
+                       continue;
                if (i > p->p_classes.nprim) {
                        printk(KERN_INFO
                               "security:  class %s not defined in policy\n",