selinux: avoid implicit conversions in the AVC code
authorChristian Göttsche <cgzones@googlemail.com>
Thu, 6 Jul 2023 13:23:26 +0000 (15:23 +0200)
committerPaul Moore <paul@paul-moore.com>
Tue, 18 Jul 2023 22:29:48 +0000 (18:29 -0400)
commit5f740953ab2f5dcb638a4c8c5e6128533a5d4077
treed7ad55889e98592a14c4ee7191b30b99c970cb0f
parent777ea29c57a078679fdb637919c1794d0d244128
selinux: avoid implicit conversions in the AVC code

Use a consistent type of u32 for sequence numbers.

Use a non-negative and input parameter matching type for the hash
result.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
[PM: subject line tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/avc.c