kernel: selinux: fix more typos introduced in #166 (#212)

i didn't realize these typos in #181

Signed-off-by: Ookiineko <chiisaineko@protonmail.com>
This commit is contained in:
小さい猫
2023-02-06 16:31:26 +08:00
committed by GitHub
parent c2ac548ac7
commit d77ab8dbff

View File

@@ -57,7 +57,7 @@ void setenforce(bool enforce)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0) #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0)
selinux_state.enforcing = enforce; selinux_state.enforcing = enforce;
#else #else
selinux_enabled = enforce; selinux_enforcing = enforce;
#endif #endif
#endif #endif
} }
@@ -78,7 +78,7 @@ bool getenforce()
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0) #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0)
return selinux_state.enforcing; return selinux_state.enforcing;
#else #else
return selinux_enabled; return selinux_enforcing;
#endif #endif
#else #else
return true; return true;