]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd6649d0ec9e5ed21914d34de37de3e9fc68c819d
tree59b3d0d407e36e0631abeee34558c0ed5e9b343e
parent889764c01cba685f3bc94d8b45c6ae7a2408b508
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