mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-12-11 13:26:01 +00:00
libsepol: cosmetic changes to make the source easier to read
strict adherense to 80 characters means that we split stuff in stupid places. Screw 80 characters. Buy a bigger monitor. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
7a1e3e1fef
commit
c43f5b1d34
@ -1826,58 +1826,36 @@ static int expand_rule_helper(sepol_handle_t * handle,
|
||||
continue;
|
||||
if (source_rule->flags & RULE_SELF) {
|
||||
if (source_rule->specified & AVRULE_AV) {
|
||||
if ((retval =
|
||||
expand_avrule_helper(handle,
|
||||
source_rule->
|
||||
specified, cond, i, i,
|
||||
source_rule->perms,
|
||||
dest_avtab,
|
||||
enabled)) !=
|
||||
EXPAND_RULE_SUCCESS) {
|
||||
retval = expand_avrule_helper(handle, source_rule->specified,
|
||||
cond, i, i, source_rule->perms,
|
||||
dest_avtab, enabled);
|
||||
if (retval != EXPAND_RULE_SUCCESS)
|
||||
return retval;
|
||||
}
|
||||
} else {
|
||||
if ((retval =
|
||||
expand_terule_helper(handle, p,
|
||||
typemap,
|
||||
source_rule->
|
||||
specified, cond,
|
||||
other, i, i,
|
||||
source_rule->perms,
|
||||
dest_avtab,
|
||||
enabled)) !=
|
||||
EXPAND_RULE_SUCCESS) {
|
||||
retval = expand_terule_helper(handle, p, typemap,
|
||||
source_rule->specified, cond,
|
||||
other, i, i, source_rule->perms,
|
||||
dest_avtab, enabled);
|
||||
if (retval != EXPAND_RULE_SUCCESS)
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
}
|
||||
ebitmap_for_each_bit(ttypes, tnode, j) {
|
||||
if (!ebitmap_node_get_bit(tnode, j))
|
||||
continue;
|
||||
if (source_rule->specified & AVRULE_AV) {
|
||||
if ((retval =
|
||||
expand_avrule_helper(handle,
|
||||
source_rule->
|
||||
specified, cond, i, j,
|
||||
source_rule->perms,
|
||||
dest_avtab,
|
||||
enabled)) !=
|
||||
EXPAND_RULE_SUCCESS) {
|
||||
retval = expand_avrule_helper(handle, source_rule->specified,
|
||||
cond, i, j, source_rule->perms,
|
||||
dest_avtab, enabled);
|
||||
if (retval != EXPAND_RULE_SUCCESS)
|
||||
return retval;
|
||||
}
|
||||
} else {
|
||||
if ((retval =
|
||||
expand_terule_helper(handle, p,
|
||||
typemap,
|
||||
source_rule->
|
||||
specified, cond,
|
||||
other, i, j,
|
||||
source_rule->perms,
|
||||
dest_avtab,
|
||||
enabled)) !=
|
||||
EXPAND_RULE_SUCCESS) {
|
||||
retval = expand_terule_helper(handle, p, typemap,
|
||||
source_rule->specified, cond,
|
||||
other, i, j, source_rule->perms,
|
||||
dest_avtab, enabled);
|
||||
if (retval != EXPAND_RULE_SUCCESS)
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user