Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88379 - Despite -X flag pam_env.conf contains XAUTHORITY variable.
Summary: Despite -X flag pam_env.conf contains XAUTHORITY variable.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PAM Gentoo Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 89001 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-08 09:41 UTC by Kirk
Modified: 2005-07-04 07:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kirk 2005-04-08 09:41:31 UTC
Despite building a system with the -X flag, the pam_env.conf will contain the XAUTHORITY variable.
pam_env.conf:
XAUTHORITY     DEFAULT= OVERRIDE=@{XAUTHORITY}

This results in the following types of errors in the logs until it is commented out:
Apr  7 22:30:01 host.domain.com PAM-env[21275]: Unknown PAM_ITEM: <XAUTHORITY>
Apr  7 22:30:01 host.domain.com sshd[21275]: PAM pam_putenv: delete non-existent entry; XAUTHORITY


Reproducible: Always
Steps to Reproduce:
This behavior was identical on 10 seperate (though similar) builds.



Expected Results:  
If the system doesn't have X support at all (ex: a web server), it shouldn't
complain in the logs about XAUTHORITY missing by default.
Comment 1 solar (RETIRED) gentoo-dev 2005-04-08 11:07:17 UTC
This is not a security bug.
Comment 2 Kirk 2005-04-08 11:32:48 UTC
It is a problem with the default PAM config.  If it isn't a security bug, what kind of bug is it?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-04-13 12:45:57 UTC
*** Bug 89001 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-04-13 13:07:45 UTC
Kirk, try the following:

REMOTEHOST	DEFAULT=localhost OVERRIDE=@{PAM_RHOST}
DISPLAY		DEFAULT=${REMOTEHOST}:0.0 OVERRIDE=${DISPLAY}
#XAUTHORITY     DEFAULT= OVERRIDE=@{XAUTHORITY}

i.e., the first line is changed, DISPLAY stays as is and XAUTHORITY is commented out. 

This is IMHO caused by the "fix" introduced in Bug 69925. 
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2005-07-04 07:23:36 UTC
I have reverted that "fix" in February already.