]> git.baikalelectronics.ru Git - kernel.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)
commitd074b560da4667b3fc9c41d77d6a3067803de5f2
tree99084eb18cf13d544f0d1f1bca7a7ac310628a21
parente245610944fbed0f31726102107f21e8b6b7c57d
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