Package: sudo
Version: 1.8.15-1.1
Severity: wishlist
Tags: patch

Hi!

Starting with version 1.18.5, dpkg now supports colors which can
enabled via the environment variable DPKG_COLORS. It would be nice if
this could be whitelisted in a similar way as COLORS and LS_COLORS are
already whitelisted.

Attached a patch implementing this.

Thanks,
Guillem
From 18087bc16ec20ca2c8f0045a6b0408e94c53075c Mon Sep 17 00:00:00 2001
From: Guillem Jover <guil...@hadrons.org>
Date: Wed, 4 May 2016 01:53:13 +0200
Subject: [PATCH] Whitelist DPKG_COLORS environment variable

---
 plugins/sudoers/env.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugins/sudoers/env.c b/plugins/sudoers/env.c
index 9065250..c037bd8 100644
--- a/plugins/sudoers/env.c
+++ b/plugins/sudoers/env.c
@@ -188,6 +188,7 @@ static const char *initial_checkenv_table[] = {
 static const char *initial_keepenv_table[] = {
     "COLORS",
     "DISPLAY",
+    "DPKG_COLORS",
     "HOSTNAME",
     "KRB5CCNAME",
     "LS_COLORS",
-- 
2.8.1

Reply via email to