patch to add jail.allow_raw_sockets sysctl

Jeffrey Hsu hsu at dragonflybsd.org
Sat May 17 13:25:17 PDT 2008


+       int flag;
+
+       flag = NULL_CRED_OKAY;
+
+       if( jailed(ai->p_ucred) && jail_allow_raw_sockets )
+               flag = flag | PRISON_ROOT;

Slight style corrections:

	int flag = NULL_CRED_OKAY;

	if (jailed(ai->p_ucred) && jail_allow_raw_sockets)
		flag = flag | PRISON_ROOT;





More information about the Submit mailing list