]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selinux: avoid unnecessary indirection in struct level_datum
authorChristian Göttsche <cgzones@googlemail.com>
Mon, 16 Dec 2024 16:40:06 +0000 (17:40 +0100)
committerPaul Moore <paul@paul-moore.com>
Wed, 8 Jan 2025 04:14:40 +0000 (23:14 -0500)
commit749153636643aaa793f14e84e864fdaf5ed0620d
tree097411c37cb3c28b8cba89b4e063053a287dbaa4
parentf07586160fd5492f8d48e7667e7a5d8797aa5090
selinux: avoid unnecessary indirection in struct level_datum

Store the owned member of type struct mls_level directly in the parent
struct instead of an extra heap allocation.

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