Skip to content

Commit db3863d

Browse files
committed
libselinux/semodule: Improve extracting message
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]>
1 parent 85d0a06 commit db3863d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

policycoreutils/semodule/semodule.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,7 @@ int main(int argc, char *argv[])
452452
}
453453

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

0 commit comments

Comments
 (0)