From f126000cc9aa0096f38565cf0d8a192481bd9b60 Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Thu, 15 Nov 2018 15:16:06 -0800 Subject: [PATCH] [sudoers] Add 'SONIC_CLI_IFACE_MODE' to env_keep to ensure variable is made available to sudo calls (#2249) --- files/image_config/sudoers/sudoers | 1 + 1 file changed, 1 insertion(+) diff --git a/files/image_config/sudoers/sudoers b/files/image_config/sudoers/sudoers index 66ca00f9de..9944299830 100644 --- a/files/image_config/sudoers/sudoers +++ b/files/image_config/sudoers/sudoers @@ -9,6 +9,7 @@ Defaults env_reset #Defaults mail_badpass Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" +Defaults env_keep += "SONIC_CLI_IFACE_MODE" Defaults env_keep += "VTYSH_PAGER" Defaults lecture_file = /etc/sudoers.lecture