selinux: convert cond_av_list to array
authorOndrej Mosnacek <omosnace@redhat.com>
Mon, 3 Feb 2020 11:27:21 +0000 (12:27 +0100)
committerPaul Moore <paul@paul-moore.com>
Wed, 12 Feb 2020 02:42:27 +0000 (21:42 -0500)
commit2b3a003e1543ab47b2f150abe31df4e7a3f8dde8
treeefac42ff641620c45f1fb6c15eaeabc2bdfb02e2
parent60abd3181db29ea81742106cc0ac2e27fd05b418
selinux: convert cond_av_list to array

Since it is fixed-size after allocation and we know the size beforehand,
using a plain old array is simpler and more efficient.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Reviewed-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/conditional.c
security/selinux/ss/conditional.h