selinux: reduce the object class calculations at inode init time
authorPaul Moore <paul@paul-moore.com>
Fri, 19 Jan 2024 01:44:21 +0000 (20:44 -0500)
committerPaul Moore <paul@paul-moore.com>
Thu, 25 Jan 2024 15:52:21 +0000 (10:52 -0500)
commit90593caf7db74da2300f7a7056a26ae000b3e7cd
tree3dbeaedc5d689d09322a578f46493be95165ad33
parent6613476e225e090cc9aad49be7fa504e290dd33d
selinux: reduce the object class calculations at inode init time

We only need to call inode_mode_to_security_class() once in
selinux_inode_init_security().

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