selinux: convert cond_expr to array
authorOndrej Mosnacek <omosnace@redhat.com>
Mon, 3 Feb 2020 11:27:22 +0000 (12:27 +0100)
committerPaul Moore <paul@paul-moore.com>
Wed, 12 Feb 2020 02:48:50 +0000 (21:48 -0500)
commit8794d7839038fc018e51d0afbf309b71069d9691
tree59b3d0d407e36e0631abeee34558c0ed5e9b343e
parent2b3a003e1543ab47b2f150abe31df4e7a3f8dde8
selinux: convert cond_expr 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