diff options
Diffstat (limited to 'security/selinux/ss/services.c')
-rw-r--r-- | security/selinux/ss/services.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index 8ee4aaef1094..d3698568a213 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c | |||
@@ -1049,6 +1049,8 @@ static int validate_classes(struct policydb *p) | |||
1049 | 1049 | ||
1050 | for (i = 1; i < kdefs->cts_len; i++) { | 1050 | for (i = 1; i < kdefs->cts_len; i++) { |
1051 | def_class = kdefs->class_to_string[i]; | 1051 | def_class = kdefs->class_to_string[i]; |
1052 | if (!def_class) | ||
1053 | continue; | ||
1052 | if (i > p->p_classes.nprim) { | 1054 | if (i > p->p_classes.nprim) { |
1053 | printk(KERN_INFO | 1055 | printk(KERN_INFO |
1054 | "security: class %s not defined in policy\n", | 1056 | "security: class %s not defined in policy\n", |