mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
selinux/stable-5.17 PR 20220223
-----BEGIN PGP SIGNATURE----- iQJIBAABCAAyFiEES0KozwfymdVUl37v6iDy2pc3iXMFAmIWcysUHHBhdWxAcGF1 bC1tb29yZS5jb20ACgkQ6iDy2pc3iXM9NhAAh3qHMPzlnUr4O/C1BPguUmZY6Evm yM+qWE0as6awhlaDQd+4cI7UT/9iUVc0TQ/kUMyf2g0+fUH9+UYhudQHSBSuAvEW Cbl6t3c8TybzilUvItrwwcaEBzXx7+K3uyuqpfdi2qUucIoLPO7zkSX4hCnik+no vkn/ULDUTEVszXbdiCfnLlLbVl/8cy9diRI2ZxtaCSHlgTkgYFTBXwqsJg512Qgq 4utKRoP1ZMCL/NcKoV1z4vvylzJCXWlNQF+KbVIm+KS2+mKDDEZead48j7Izot8X kwOIdp5SgfIUnCbFsfbuZf1THKmjDRz1IS8rD5eGUKpz7upfmcAhenls2bGMf0VL IqqcOLVM5r1xXrlsrjLqwTwTYubxCOSXAmS1SExRbmEDhDBWfbobRqEUaXoiN+gd sSFhGsOLMOqaK9oTz0vRG0/kCIyfovC6CqxDPxLZffAMZN6GuaWcN3qi9ua64kD9 Ro1LxJiryTOgxX9CgbvYGjR2h9f91zbUP5FtTsmi//+ty2e8mtJLwRd4BL45xLQ1 khV/JYi69AIJ2IWrnOHBgjF8U48F1WzmG1pkZ6JrDzbMn52Ydvs00eXVbHIM85X8 8qL5duZFmm9C0rCWZtqYB47tOE6dJ1ugb0OqzJFhF2OaqV7KRdtJn/NA83V4Lh5m Z8UlL9BVar/5DsQ= =B7Cx -----END PGP SIGNATURE----- Merge tag 'selinux-pr-20220223' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux Pull selinux fix from Paul Moore: "A second small SELinux fix which addresses an incorrect mutex_is_locked() check" * tag 'selinux-pr-20220223' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux: selinux: fix misuse of mutex_is_locked()
This commit is contained in:
commit
54134be658
@ -77,7 +77,7 @@ void selinux_ima_measure_state_locked(struct selinux_state *state)
|
||||
size_t policy_len;
|
||||
int rc = 0;
|
||||
|
||||
WARN_ON(!mutex_is_locked(&state->policy_mutex));
|
||||
lockdep_assert_held(&state->policy_mutex);
|
||||
|
||||
state_str = selinux_ima_collect_state(state);
|
||||
if (!state_str) {
|
||||
@ -117,7 +117,7 @@ void selinux_ima_measure_state_locked(struct selinux_state *state)
|
||||
*/
|
||||
void selinux_ima_measure_state(struct selinux_state *state)
|
||||
{
|
||||
WARN_ON(mutex_is_locked(&state->policy_mutex));
|
||||
lockdep_assert_not_held(&state->policy_mutex);
|
||||
|
||||
mutex_lock(&state->policy_mutex);
|
||||
selinux_ima_measure_state_locked(state);
|
||||
|
Loading…
Reference in New Issue
Block a user