diff options
| author | 2026-04-30 14:36:52 -0400 | |
|---|---|---|
| committer | 2026-05-05 16:02:28 -0400 | |
| commit | 868f31e4061eca8c3cd607d79d954d5e54f204aa (patch) | |
| tree | 937261f5c68340e174aabfdafa0b79aad69b3841 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | selinux: allow multiple opens of /sys/fs/selinux/policy (diff) | |
selinux: shrink critical section in sel_write_load()
Currently sel_write_load() takes the policy mutex earlier than
necessary. Move the taking of the mutex later. This avoids
holding it unnecessarily across the vmalloc() and copy_from_user()
of the policy data.
Cc: stable@vger.kernel.org
Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
