All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libselinux/semodule: Improve extracting message
@ 2021-10-04 12:57 Petr Lautrbach
  2021-10-04 14:22 ` James Carter
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Lautrbach @ 2021-10-04 12:57 UTC (permalink / raw)
  To: selinux; +Cc: Petr Lautrbach

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 <plautrba@redhat.com>
---
 policycoreutils/semodule/semodule.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/policycoreutils/semodule/semodule.c b/policycoreutils/semodule/semodule.c
index bf9eec02a050..66ea06624eda 100644
--- a/policycoreutils/semodule/semodule.c
+++ b/policycoreutils/semodule/semodule.c
@@ -672,8 +672,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;
 				}
 
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-06 10:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-04 12:57 [PATCH] libselinux/semodule: Improve extracting message Petr Lautrbach
2021-10-04 14:22 ` James Carter
2021-10-06 10:37   ` Petr Lautrbach

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.