Skip to content
Commit b8b87fd9 authored by Scott Mayhew's avatar Scott Mayhew Committed by Paul Moore
Browse files

selinux: Fix selinux_sb_mnt_opts_compat()

selinux_sb_mnt_opts_compat() is called under the sb_lock spinlock and
shouldn't be performing any memory allocations.  Fix this by parsing the
sids at the same time we're chopping up the security mount options
string and then using the pre-parsed sids when doing the comparison.

Fixes: cc274ae7 ("selinux: fix sleeping function called from invalid context")
Fixes: 69c4a42d

 ("lsm,selinux: add new hook to compare new mount to an existing mount")
Signed-off-by: default avatarScott Mayhew <smayhew@redhat.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent ecff3057
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment