]> git.dujemihanovic.xyz Git - linux.git/commit
selinux: try to use preparsed sid before calling parse_sid()
authorScott Mayhew <smayhew@redhat.com>
Mon, 31 Jan 2022 18:57:37 +0000 (13:57 -0500)
committerPaul Moore <paul@paul-moore.com>
Tue, 1 Feb 2022 21:37:17 +0000 (16:37 -0500)
commit6bc1968c14e91e03c0851b9c5c5330d91305a853
tree99084eb18cf13d544f0d1f1bca7a7ac310628a21
parentb8b87fd954b4b1bdd2d739c8f50bf685351a1a94
selinux: try to use preparsed sid before calling parse_sid()

Avoid unnecessary parsing of sids that have already been parsed via
selinux_sb_eat_lsm_opts().

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c