Skip to content

Commit

Permalink
libselinux/semodule: Improve extracting message
Browse files Browse the repository at this point in the history
The code doesn't check the default priority, it just looks for the
highest.

Fixes:

    # semodule -E testmodule
    Module 'testmodule' does not exist at the default priority '400'. Extracting at highest existing priority '400'.

Signed-off-by: Petr Lautrbach <[email protected]>
Acked-by: James Carter <[email protected]>
  • Loading branch information
bachradsusi committed Oct 6, 2021
1 parent 85d0a06 commit db3863d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions policycoreutils/semodule/semodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,7 @@ int main(int argc, char *argv[])
}

semanage_module_info_get_priority(sh, extract_info, &curr_priority);
printf("Module '%s' does not exist at the default priority '%d'. "
"Extracting at highest existing priority '%d'.\n", mode_arg, priority, curr_priority);
printf("Extracting at highest existing priority '%d'.\n", curr_priority);
priority = curr_priority;
}

Expand Down

0 comments on commit db3863d

Please sign in to comment.