summaryrefslogtreecommitdiffstats
path: root/pym/output.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-10 22:58:51 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-10 22:58:51 +0000
commitd0dc4df791e8500e89c955a09436f5f2a0385d7e (patch)
treeb91444679fd695e05ab6478244d510dee99a0850 /pym/output.py
parent5ae7438dee18228c42b3b36455e7d9f7b3f5904a (diff)
downloadportage-d0dc4df791e8500e89c955a09436f5f2a0385d7e.tar.gz
portage-d0dc4df791e8500e89c955a09436f5f2a0385d7e.tar.bz2
portage-d0dc4df791e8500e89c955a09436f5f2a0385d7e.zip
For bug #81097, detect and report suspicious hardlinks to suid/sgid files. False positives are prevented by doing reference counts for each inode having suid/sgid bits and multiple hardlinks. The security check is done prior to each merge or unmerge phase and it will cause the phase to abort if a problem is found (so that the user can investigate before any files are removed). (trunk r6791:6794)
svn path=/main/branches/2.1.2/; revision=6795
Diffstat (limited to 'pym/output.py')
-rw-r--r--pym/output.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/output.py b/pym/output.py
index bd9c474e6..ca265124a 100644
--- a/pym/output.py
+++ b/pym/output.py
@@ -127,6 +127,7 @@ codes["BRACKET"] = codes["blue"]
# Portage functions
codes["INFORM"] = codes["darkgreen"]
codes["UNMERGE_WARN"] = codes["red"]
+codes["SECURITY_WARN"] = codes["red"]
codes["MERGE_LIST_PROGRESS"] = codes["yellow"]
def parse_color_map():