cap_net: fix verification of bind permission
MFC after: 5 days
This commit is contained in:
parent
88910b8b7b
commit
f45ca435bd
@ -1382,7 +1382,7 @@ net_limit(const nvlist_t *oldlimits, const nvlist_t *newlimits)
|
||||
*/
|
||||
if (oldlimits == NULL)
|
||||
return (0);
|
||||
if (!hasconnect && nvlist_exists(oldlimits, LIMIT_NV_BIND))
|
||||
if (!hasbind && nvlist_exists(oldlimits, LIMIT_NV_BIND))
|
||||
return (ENOTCAPABLE);
|
||||
if (!hasconnect && nvlist_exists(oldlimits, LIMIT_NV_CONNECT))
|
||||
return (ENOTCAPABLE);
|
||||
|
Loading…
Reference in New Issue
Block a user