If a "hole" opens up in the ruleset (i.e.: remove 5), do not return
unknown error. Instead, just return error. Submitted by: avatar Tested by: trhodes
This commit is contained in:
parent
d136945536
commit
096dd4065f
@ -209,13 +209,10 @@ out:
|
||||
mtx_unlock(&mac_bsdextended_mtx);
|
||||
if (ruleptr != NULL)
|
||||
FREE(ruleptr, M_MACBSDEXTENDED);
|
||||
if (req->oldptr && error == 0) {
|
||||
if (req->oldptr && error == 0)
|
||||
error = SYSCTL_OUT(req, &temprule, sizeof(temprule));
|
||||
if (error)
|
||||
return (error);
|
||||
}
|
||||
|
||||
return (0);
|
||||
return (error);
|
||||
}
|
||||
|
||||
SYSCTL_NODE(_security_mac_bsdextended, OID_AUTO, rules,
|
||||
|
Loading…
x
Reference in New Issue
Block a user