OSDN Git Service

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)
commit60abd3181db29ea81742106cc0ac2e27fd05b418
tree45792720462b0de5a5ef3eaa7a1269daaae95470
parent8d269a8e2a8f0bca89022f4ec98de460acb90365
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