]> git.hungrycats.org Git - linux/commit
selinux: switch two allocations to use kzalloc_objs()
authorStephen Smalley <stephen.smalley.work@gmail.com>
Wed, 29 Apr 2026 19:18:40 +0000 (15:18 -0400)
committerPaul Moore <paul@paul-moore.com>
Wed, 29 Apr 2026 20:37:48 +0000 (16:37 -0400)
commitcf6a513f1937581eb012a217b29817e025a1a0ef
tree5baa65392daaff83653ca932388d93f18c94f097
parentef5b517e7bacbaba03d706cd624366addf6ef33a
selinux: switch two allocations to use kzalloc_objs()

These were the only two allocations in the policy loading logic
that were not already using kzalloc_objs() for the policy
data structures. Fix these to be consistent with the rest and
to protect against ill-formed policy.

Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/conditional.c