selinux: declare read-only parameters const
authorChristian Göttsche <cgzones@googlemail.com>
Tue, 30 Aug 2022 15:52:49 +0000 (17:52 +0200)
committerPaul Moore <paul@paul-moore.com>
Tue, 30 Aug 2022 21:14:36 +0000 (17:14 -0400)
commit6354324d8a3e31108b53ac8ac6e9b67c9485d75a
tree1796ec6effad680cc933acb08c08fd7c47ca857f
parentc3fae2b2e690ab92ee1306cc22126240ab70e371
selinux: declare read-only parameters const

Declare ebitmap, mls_level and mls_context parameters const where they
are only read from.  This allows callers to supply pointers to const
as arguments and increases readability.

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