From b485fb4655cc8db2a882c5d9ea675a1bb5a2197a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 25 Dec 2006 09:15:50 +0000 Subject: Make sure that portage_group_warning() will be shown even in quiet mode. svn path=/main/trunk/; revision=5390 --- pym/portage_data.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'pym') diff --git a/pym/portage_data.py b/pym/portage_data.py index 649b54dd8..0f846a8e2 100644 --- a/pym/portage_data.py +++ b/pym/portage_data.py @@ -48,10 +48,17 @@ os.environ["USERLAND"]=userland def portage_group_warning(): warn_prefix = bad("*** WARNING *** ") - writemsg(warn_prefix + "For security reasons, only system administrators should be\n") - writemsg(warn_prefix + "allowed in the portage group. Untrusted users or processes\n") - writemsg(warn_prefix + "can potentially exploit the portage group for attacks such as\n") - writemsg(warn_prefix + "local privilege escalation.\n\n") + mylines = [ + "For security reasons, only system administrators should be", + "allowed in the portage group. Untrusted users or processes", + "can potentially exploit the portage group for attacks such as", + "local privilege escalation." + ] + for x in mylines: + writemsg(warn_prefix, noiselevel=-1) + writemsg(x, noiselevel=-1) + writemsg("\n", noiselevel=-1) + writemsg("\n", noiselevel=-1) # Portage has 3 security levels that depend on the uid and gid of the main # process and are assigned according to the following table: -- cgit v1.2.3-1-g7c22