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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148482
@ -209,13 +209,10 @@ sysctl_rule(SYSCTL_HANDLER_ARGS)
|
||||
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…
Reference in New Issue
Block a user