Skip to content

Commit

Permalink
libsepol/cil: Add hexadecimal support for Xen ioportcon statements
Browse files Browse the repository at this point in the history
Add hexadecimal support for Xen ioportcon statements which was
left out of commit c408c70.

Signed-off-by: James Carter <[email protected]>
  • Loading branch information
jwcart2 committed Mar 28, 2017
1 parent da2f231 commit af0ce03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libsepol/cil/src/cil_build_ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -4689,12 +4689,12 @@ int cil_gen_ioportcon(struct cil_db *db, struct cil_tree_node *parse_current, st
if (parse_current->next->cl_head != NULL) {
if (parse_current->next->cl_head->next != NULL &&
parse_current->next->cl_head->next->next == NULL) {
rc = cil_fill_integer(parse_current->next->cl_head, &ioportcon->ioport_low, 10);
rc = cil_fill_integer(parse_current->next->cl_head, &ioportcon->ioport_low, 0);
if (rc != SEPOL_OK) {
cil_log(CIL_ERR, "Improper ioport specified\n");
goto exit;
}
rc = cil_fill_integer(parse_current->next->cl_head->next, &ioportcon->ioport_high, 10);
rc = cil_fill_integer(parse_current->next->cl_head->next, &ioportcon->ioport_high, 0);
if (rc != SEPOL_OK) {
cil_log(CIL_ERR, "Improper ioport specified\n");
goto exit;
Expand All @@ -4705,7 +4705,7 @@ int cil_gen_ioportcon(struct cil_db *db, struct cil_tree_node *parse_current, st
goto exit;
}
} else {
rc = cil_fill_integer(parse_current->next, &ioportcon->ioport_low, 10);
rc = cil_fill_integer(parse_current->next, &ioportcon->ioport_low, 0);
if (rc != SEPOL_OK) {
cil_log(CIL_ERR, "Improper ioport specified\n");
goto exit;
Expand Down

0 comments on commit af0ce03

Please sign in to comment.