DragonFly submit List (threaded) for 2008-05
DragonFly BSD
DragonFly submit List (threaded) for 2008-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: patch to add jail.allow_raw_sockets sysctl


From: "Jeffrey Hsu" <hsu@xxxxxxxxxxxxxxxx>
Date: Sat, 17 May 2008 13:24:05 -0700

+       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;



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]