Lines 125-131
ugidfw_rule_valid(struct mac_bsdextended_rule *rule)
Link Here
|
125 |
return (EINVAL); |
125 |
return (EINVAL); |
126 |
if ((rule->mbr_object.mbo_neg | MBO_ALL_FLAGS) != MBO_ALL_FLAGS) |
126 |
if ((rule->mbr_object.mbo_neg | MBO_ALL_FLAGS) != MBO_ALL_FLAGS) |
127 |
return (EINVAL); |
127 |
return (EINVAL); |
128 |
if ((rule->mbr_object.mbo_neg | MBO_TYPE_DEFINED) && |
128 |
if ((rule->mbr_object.mbo_neg | MBO_TYPE_DEFINED) != MBO_TYPE_DEFINED && |
129 |
(rule->mbr_object.mbo_type | MBO_ALL_TYPE) != MBO_ALL_TYPE) |
129 |
(rule->mbr_object.mbo_type | MBO_ALL_TYPE) != MBO_ALL_TYPE) |
130 |
return (EINVAL); |
130 |
return (EINVAL); |
131 |
if ((rule->mbr_mode | MBI_ALLPERM) != MBI_ALLPERM) |
131 |
if ((rule->mbr_mode | MBI_ALLPERM) != MBI_ALLPERM) |