return error;
}
-int
-mac_system_check_chud(kauth_cred_t cred)
-{
- 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_chud, cred);
-
- return error;
-}
-
int
mac_system_check_host_priv(kauth_cred_t cred)
{
int
mac_system_check_sysctlbyname(kauth_cred_t cred, const char *namestring, int *name,
- u_int namelen, user_addr_t oldctl, size_t oldlen,
+ size_t namelen, user_addr_t oldctl, size_t oldlen,
user_addr_t newctl, size_t newlen)
{
int error;