[sudo-users] problem in sudo-1.8.10p3-2.1.6; breakage from sudo-1.8.7-5.1.3

L. A. Walsh sudo at tlinx.org
Thu May 28 07:06:47 MDT 2015





Todd C. Miller wrote:
> BTW, you should be able to tell if sudo really is clearing the
> environment by comparing the output of "env" to "sudo env".
>
>  - todd
>
>   
Well it is different.  The old version's diff looks like this:

 BASH_ENV=/home/law/.bash_env                                      
BASH_ENV=/home/law/.bash_env
BASH_FUNC___age%%=() {  declare ns=$(date +"%N");               <
BASH_FUNC__path_append%%=() {  _path_op '$1=\"${!1}:$2\"' "$@"  <
BASH_FUNC__path_delete%%=() {  _path_op '$1=\"${!1//*(:$2|$2:)/ <
BASH_FUNC__path_has_subpath%%=() {  [[ ${!1} =~ (:$2:|^$2:|:$2$ <
BASH_FUNC__path_op%%=() {  (($#<3)) && return 1;                <
BASH_FUNC__path_prepend%%=() {  _path_op '$1=\"$2:${!1}\"' "$@" <
BASH_FUNC_chr%%=() {  local nl="" fmt;                          <
BASH_FUNC_cygwin%%=() {  return 1                               <
BASH_FUNC_datestamp%%=() {  local dstring="%Y%m%d.%H%M%S";      <
BASH_FUNC_gvim%%=() {  declare -a orig_args=($@) gv_files=() gv <
BASH_FUNC_include%%=() {  [[ -n $1 ]] || return 1;              <
BASH_FUNC_isatty%%=() {  test -c /proc/self/fd/1                <
BASH_FUNC_mc%%=() {  . /usr/share/mc/mc-wrapper.sh              <
BASH_FUNC_ord%%=() {  local nl="";                              <
BASH_FUNC_showsize%%=() {  local s=$(stty size);                <
BASH_FUNC_spwd%%=() {  (($#)) || {                              <
BASH_FUNC_suffix%%=() {  local -i t i;                          <
BASH_FUNC_titlebar%%=() {  printf "\033]1;${qUSER}@${HOSTNAME}: <
LD_LIBRARY_PATH=/libdl                                          <
LESS=-M -X -i -R -x2                                              
LESS=-M -X -i -R -x2
                                                                > 
SUDO_COMMAND=/usr/bin/env
                                                                > 
SUDO_GID=201
                                                                > 
SUDO_UID=5013
                                                                > 
SUDO_USER=law
_=/usr/bin/env                                                  | 
_=/usr/bin/sudo

--- so somehow, the new one is stripping out REMOTEHOST and DISPLAY
Going to check the suse source now for patches...



More information about the sudo-users mailing list