+int
+mac_system_check_info(kauth_cred_t cred, const char *info_type)
+{
+ int error;
+
+#if SECURITY_MAC_CHECK_ENFORCE
+ /* 21167099 - only check if we allow write */
+ if (!mac_system_enforce)
+ return (0);
+#endif
+
+ MAC_CHECK(system_check_info, cred, info_type);
+
+ return (error);
+}
+