Skip to content

Commit

Permalink
libsepol: add missing word separators in error message
Browse files Browse the repository at this point in the history
The concatenation of the multi line error messages misses a separating
space between the boundary words.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Acked-by: James Carter <jwcart2@gmail.com>
  • Loading branch information
cgzones authored and jwcart2 committed Dec 17, 2024
1 parent 9395cc0 commit b234b71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libsepol/src/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,13 @@ static int avtab_write_item(policydb_t * p,
return POLICYDB_ERROR;
if ((p->policyvers < POLICYDB_VERSION_XPERMS_IOCTL) &&
(cur->key.specified & AVTAB_XPERMS)) {
ERR(fp->handle, "policy version %u does not support extended"
ERR(fp->handle, "policy version %u does not support extended "
"permissions rules and one was specified", p->policyvers);
return POLICYDB_ERROR;
}

if (!policydb_has_cond_xperms_feature(p) && (cur->key.specified & AVTAB_XPERMS) && conditional) {
ERR(fp->handle, "policy version %u does not support extended"
ERR(fp->handle, "policy version %u does not support extended "
"permissions rules in conditional policies and one was specified", p->policyvers);
return POLICYDB_ERROR;
}
Expand Down

0 comments on commit b234b71

Please sign in to comment.