+int
+mac_system_check_sysctlbyname(kauth_cred_t cred, const char *namestring, int *name,
+ u_int namelen, user_addr_t oldctl, size_t oldlen,
+ user_addr_t newctl, size_t newlen)
+{
+ int error;
+
+#if SECURITY_MAC_CHECK_ENFORCE
+ /* 21167099 - only check if we allow write */