summaryrefslogtreecommitdiff
path: root/security/selinux/include/security.h
diff options
context:
space:
mode:
Diffstat (limited to 'security/selinux/include/security.h')
-rw-r--r--security/selinux/include/security.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/security/selinux/include/security.h b/security/selinux/include/security.h
index cb38d1894cfc..312112d214bb 100644
--- a/security/selinux/include/security.h
+++ b/security/selinux/include/security.h
@@ -95,7 +95,6 @@ struct selinux_state {
#ifdef CONFIG_SECURITY_SELINUX_DEVELOP
bool enforcing;
#endif
- bool checkreqprot;
bool initialized;
bool policycap[__POLICYDB_CAP_MAX];
@@ -145,14 +144,8 @@ static inline void enforcing_set(bool value)
static inline bool checkreqprot_get(void)
{
- return READ_ONCE(selinux_state.checkreqprot);
-}
-
-static inline void checkreqprot_set(bool value)
-{
- if (value)
- pr_err("SELinux: https://github.com/SELinuxProject/selinux-kernel/wiki/DEPRECATE-checkreqprot\n");
- WRITE_ONCE(selinux_state.checkreqprot, value);
+ /* non-zero/true checkreqprot values are no longer supported */
+ return 0;
}
#ifdef CONFIG_SECURITY_SELINUX_DISABLE