Bug 243069

Summary: xterm installed setgid; environment whacked
Product: [Fedora] Fedora Reporter: Peter TB Brett <peter>
Component: xtermAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 7CC: rkhadgar
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-07 14:51:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter TB Brett 2007-06-07 06:45:27 UTC
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 07:00:00 UTC
This is related to Bug 164869.

Comment 2 Miroslav Lichvar 2007-06-07 14:51:05 UTC
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 ***