selinux: checkreqprot is deprecated, add some ssleep() discomfort
authorPaul Moore <paul@paul-moore.com>
Tue, 8 Mar 2022 22:11:57 +0000 (17:11 -0500)
committerPaul Moore <paul@paul-moore.com>
Mon, 4 Apr 2022 20:24:22 +0000 (16:24 -0400)
commit81200b0265b15609dcecf192e3f7fb238ec0d3da
tree8ffcfe5948cf2a0c2faff817103cdb69ec8ca05d
parent43b666622c60bc001f2f8a19f5f97946ff53a5cc
selinux: checkreqprot is deprecated, add some ssleep() discomfort

The checkreqprot functionality was disabled by default back in
Linux v4.4 (2015) with commit 2a35d196c160e3 ("selinux: change
CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE default") and it was
officially marked as deprecated in Linux v5.7.  It was always a
bit of a hack to workaround very old userspace and to the best of
our knowledge, the checkreqprot functionality has been disabled by
Linux distributions for quite some time.

This patch moves the deprecation messages from KERN_WARNING to
KERN_ERR and adds a five second sleep to anyone using it to help
draw their attention to the deprecation and provide a URL which
helps explain things in more detail.

Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c
security/selinux/include/security.h
security/selinux/selinuxfs.c