]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: convert cond_list to array
authorOndrej Mosnacek <omosnace@redhat.com>
Mon, 3 Feb 2020 11:27:20 +0000 (12:27 +0100)
committerPaul Moore <paul@paul-moore.com>
Wed, 12 Feb 2020 02:39:41 +0000 (21:39 -0500)
commitac1380ec8a3914db88fabb3e67756a57571d879f
tree45792720462b0de5a5ef3eaa7a1269daaae95470
parent164d1ed63d757b781132aa4b46d80dfbaa2ffde9
selinux: convert cond_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.

While there, also fix signedness of some related variables/parameters.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/include/conditional.h
security/selinux/selinuxfs.c
security/selinux/ss/conditional.c
security/selinux/ss/conditional.h
security/selinux/ss/policydb.c
security/selinux/ss/policydb.h
security/selinux/ss/services.c