Bug 243069 - xterm installed setgid; environment whacked
xterm installed setgid; environment whacked
Status: CLOSED DUPLICATE of bug 229360
Product: Fedora
Classification: Fedora
Component: xterm (Show other bugs)
7
i686 Linux
low Severity medium
: ---
: ---
Assigned To: Miroslav Lichvar
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-07 02:45 EDT by Peter TB Brett
Modified: 2007-11-30 17:12 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-06-07 10:51:05 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Peter TB Brett 2007-06-07 02:45:27 EDT
Description of problem:

xterm is installed setgid utempter.  This means that any LD_CONFIG_PATH set in 
a user's .profile or .bash_profile is destroyed.

Version-Release number of selected component (if applicable):

xterm-225-2.fc7

How reproducible:

Add LD_LIBRARY_PATH=/some/path to .profile.  Exec xterm from a login shell.  
Check environment.

Steps to Reproduce:

1.

$ tail -n2 .profile
export LD_LIBRARY_PATH=/home/peter/opt/lib:$LD_LIBRARY_PATH
export LD_TEST=/foo/bar

2.

$ (exec -l /bin/sh -c "env | grep LD")
LD_LIBRARY_PATH=/home/peter/opt/lib:
LD_TEST=/foo/bar

3.

$ (exec -l /bin/sh -c "exec xterm -geometry 80x24-0-0")


4. In new xterm window:

$ env | grep LD
LD_TEST=/foo/bar




Additional info:

In F7, this also affects Konsole.
Comment 1 Peter TB Brett 2007-06-07 03:00:00 EDT
This is related to Bug 164869.
Comment 2 Miroslav Lichvar 2007-06-07 10:51:05 EDT
xterm has to have utempter setgid since directory where the utempter binary is
located is accessible only to group utempter.

*** This bug has been marked as a duplicate of 229360 ***

Note You need to log in before you can comment on or make changes to this bug.