--- bsd/conf/MASTER.orig 2009-09-10 16:52:24.000000000 -0700 +++ bsd/conf/MASTER 2009-11-05 11:02:39.000000000 -0800 @@ -474,5 +474,6 @@ pseudo-device sdt 1 init sdt_init # pseudo-device systrace 1 init systrace_init # pseudo-device fbt 1 init fbt_init # pseudo-device profile_prvd 1 init profile_init # +options RAW4ALL --- bsd/kern/uipc_socket.c.orig 2009-09-10 16:52:06.000000000 -0700 +++ bsd/kern/uipc_socket.c 2009-11-05 11:05:56.000000000 -0800 @@ -512,11 +512,15 @@ TAILQ_INIT(&so->so_incomp); TAILQ_INIT(&so->so_comp); so->so_type = type; so->so_uid = kauth_cred_getuid(kauth_cred_get()); +#ifdef RAW4ALL + if (!suser(kauth_cred_get(), NULL) || prp -> pr_type == SOCK_RAW) +#else if (!suser(kauth_cred_get(), NULL)) +#endif /* RAW4ALL */ so->so_state = SS_PRIV; so->so_proto = prp; #ifdef __APPLE__ so->so_rcv.sb_flags |= SB_RECV; /* XXX */