priv: Comment PRIV_NETINET_RAW as FreeBSD does
authorMichael Neumann <mneumann@ntecs.de>
Sun, 12 Jul 2009 16:29:33 +0000 (18:29 +0200)
committerMichael Neumann <mneumann@ntecs.de>
Sun, 12 Jul 2009 16:29:33 +0000 (18:29 +0200)
sys/kern/kern_jail.c

index 5b47d9e..4fd7e31 100644 (file)
@@ -698,11 +698,14 @@ prison_priv_check(struct ucred *cred, int priv)
 
                return (0);
 
+               /*
+                * Conditionally allow creating raw sockets in jail.
+                */
        case PRIV_NETINET_RAW:
-
                if (jail_allow_raw_sockets)
                        return (0);
-               return (EPERM);
+               else
+                       return (EPERM);
 
        default: