diff options
author | 2022-04-14 16:40:10 -0400 | |
---|---|---|
committer | 2022-04-14 16:44:21 -0400 | |
commit | 6a9e261cbbee08c499f2331910027e8c40c8f81f (patch) | |
tree | 9478231587f3a1750bf1a200c57997381f5e715e /scripts/gdb/linux/utils.py | |
parent | selinux: checkreqprot is deprecated, add some ssleep() discomfort (diff) | |
download | wireguard-linux-6a9e261cbbee08c499f2331910027e8c40c8f81f.tar.xz wireguard-linux-6a9e261cbbee08c499f2331910027e8c40c8f81f.zip |
selinux: don't sleep when CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE is true
Unfortunately commit 81200b0265b1 ("selinux: checkreqprot is
deprecated, add some ssleep() discomfort") added a five second sleep
during early kernel boot, e.g. start_kernel(), which could cause a
"scheduling while atomic" panic. This patch fixes this problem by
moving the sleep out of checkreqprot_set() and into
sel_write_checkreqprot() so that we only sleep when the checkreqprot
setting is set during runtime, after the kernel has booted. The
error message remains the same in both cases.
Fixes: 81200b0265b1 ("selinux: checkreqprot is deprecated, add some ssleep() discomfort")
Reported-by: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions