aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux
diff options
context:
space:
mode:
Diffstat (limited to 'security/selinux')
-rw-r--r--security/selinux/ss/services.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
index d06df335ee7b..f26a8cad06e7 100644
--- a/security/selinux/ss/services.c
+++ b/security/selinux/ss/services.c
@@ -325,7 +325,7 @@ static int context_struct_compute_av(struct context *scontext,
325 goto inval_class; 325 goto inval_class;
326 if (unlikely(tclass > policydb.p_classes.nprim)) 326 if (unlikely(tclass > policydb.p_classes.nprim))
327 if (tclass > kdefs->cts_len || 327 if (tclass > kdefs->cts_len ||
328 !kdefs->class_to_string[tclass - 1] || 328 !kdefs->class_to_string[tclass] ||
329 !policydb.allow_unknown) 329 !policydb.allow_unknown)
330 goto inval_class; 330 goto inval_class;
331 331