selinux: avoid implicit conversions in selinuxfs code
authorChristian Göttsche <cgzones@googlemail.com>
Mon, 7 Aug 2023 17:11:39 +0000 (19:11 +0200)
committerPaul Moore <paul@paul-moore.com>
Wed, 9 Aug 2023 23:07:48 +0000 (19:07 -0400)
commit97842c56b8c80bb43f30ffbecbde0e512025e3ce
treeb284ae47e2f1cf0fc0e436f6ce9ac794ef7ade3b
parentaa4b60518280834529f75cb7667ffac91967abea
selinux: avoid implicit conversions in selinuxfs code

Use umode_t as parameter type for sel_make_inode(), which assigns the
value to the member i_mode of struct inode.

Use identical and unsigned types for loop iterators.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/selinuxfs.c