Skip to content

Commit

Permalink
libsepol: fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Acked-by: James Carter <jwcart2@gmail.com>
  • Loading branch information
cgzones authored and jwcart2 committed Jun 24, 2021
1 parent ce1025b commit 2cb6bac
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libsepol/cil/src/cil_build_ast.c
Expand Up @@ -3692,7 +3692,7 @@ int cil_gen_sensitivityorder(struct cil_db *db, struct cil_tree_node *parse_curr

cil_list_for_each(curr, sensorder->sens_list_str) {
if (curr->data == CIL_KEY_UNORDERED) {
cil_log(CIL_ERR, "Sensitivy order cannot be unordered.\n");
cil_log(CIL_ERR, "Sensitivity order cannot be unordered.\n");
rc = SEPOL_ERR;
goto exit;
}
Expand Down
2 changes: 1 addition & 1 deletion libsepol/cil/src/cil_resolve_ast.c
Expand Up @@ -1619,7 +1619,7 @@ int cil_resolve_sensitivityorder(struct cil_tree_node *current, void *extra_args
cil_list_for_each(curr, sensorder->sens_list_str) {
rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_SENS, extra_args, &datum);
if (rc != SEPOL_OK) {
cil_log(CIL_ERR, "Failed to resolve sensitivty %s in sensitivityorder\n", (char *)curr->data);
cil_log(CIL_ERR, "Failed to resolve sensitivity %s in sensitivityorder\n", (char *)curr->data);
goto exit;
}
if (FLAVOR(datum) != CIL_SENS) {
Expand Down
2 changes: 1 addition & 1 deletion libsepol/src/module_to_cil.c
Expand Up @@ -3972,7 +3972,7 @@ int sepol_module_policydb_to_cil(FILE *fp, struct policydb *pdb, int linked)

if (pdb->policy_type != SEPOL_POLICY_BASE &&
pdb->policy_type != SEPOL_POLICY_MOD) {
log_err("Policy pakcage is not a base or module");
log_err("Policy package is not a base or module");
rc = -1;
goto exit;
}
Expand Down
2 changes: 1 addition & 1 deletion libsepol/src/policydb_validate.c
Expand Up @@ -641,7 +641,7 @@ static int validate_scope_index(sepol_handle_t *handle, scope_index_t *scope_ind
return 0;

bad:
ERR(handle, "Invalide scope");
ERR(handle, "Invalid scope");
return -1;
}

Expand Down

0 comments on commit 2cb6bac

Please sign in to comment.