top: provide the means to exploit a 256-color terminal

With the Qualys security audit, we began to harden our
treatment of the top rcfile. In particular, the values
read were checked so as to prevent some malicious user
from editing it in order to achieve an evil objective.

However when it came to colors I was surprised to find
that at least one user edited the rcfile for 256-color
support. Unfortunately, our new checks prevented this.

So this commit will provide the means to exploit those
extra colors with no need to manually edit the rcfile.

Reference(s):
https://gitlab.com/procps-ng/procps/issues/96

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner
2018-06-04 00:00:00 -05:00
committed by Craig Small
parent 3352bddba5
commit cf057d2fe5
3 changed files with 22 additions and 34 deletions

1
NEWS
View File

@@ -1,6 +1,7 @@
procps-ng-NEXT
----------------
* docs: Use correct symbols for -h option in free.1 Debian #898774
* top: can now exploit 256-color terminals issue #96
procps-ng-3.3.15
----------------