mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-02 03:32:13 +00:00
libsepol: drop message for uncommon error cases
Match surrounding code and the message were quite generic too. Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
parent
cae65d9a10
commit
808a43ab88
@ -2886,7 +2886,6 @@ static int write_xen_pirq_rules_to_conf(FILE *out, struct policydb *pdb)
|
||||
for (pirq = pdb->ocontexts[1]; pirq != NULL; pirq = pirq->next) {
|
||||
rc = snprintf(pirq_str, 21, "%i", pirq->u.pirq);
|
||||
if (rc < 0 || rc >= 21) {
|
||||
fprintf(stderr,"error1\n");
|
||||
rc = -1;
|
||||
goto exit;
|
||||
}
|
||||
@ -2894,7 +2893,6 @@ static int write_xen_pirq_rules_to_conf(FILE *out, struct policydb *pdb)
|
||||
ctx = context_to_str(pdb, &pirq->context[0]);
|
||||
if (!ctx) {
|
||||
rc = -1;
|
||||
fprintf(stderr,"error2\n");
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user