Bug 917888 - pkexec does not honour PAM environment set from PAM session hooks
Summary: pkexec does not honour PAM environment set from PAM session hooks
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: polkit
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miloslav Trmač
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-05 02:59 UTC by Lennart Poettering
Modified: 2013-05-28 02:17 UTC (History)
1 user (show)

Fixed In Version: polkit-0.111-1.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-28 02:17:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lennart Poettering 2013-03-05 02:59:00 UTC
If I invoke "pkexec /bin/bash" in my shell, then I find that $XDG_SESSION_ID and friends which are set via pam_systemd don't end up being set in the resulting shell. "su -" OTOH gets this right.

pkexec really should honour pam_getenvlist() and merge it into the subprocess' environment block. It should consider these environment variables which are set through PAM "trusted" and not apply any filtering on these (in contrast to those it might have inherited from the caller's environment block).

Comment 1 Lennart Poettering 2013-03-05 02:59:21 UTC
Also see:

https://bugzilla.redhat.com/show_bug.cgi?id=917887

Comment 2 Fedora End Of Life 2013-04-03 16:21:21 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 3 Miloslav Trmač 2013-04-13 01:38:15 UTC
Thanks for your report.

Fixed by upstream https://bugs.freedesktop.org/show_bug.cgi?id=62016 .

Comment 4 Fedora Update System 2013-05-15 22:10:08 UTC
polkit-0.111-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/polkit-0.111-1.fc19

Comment 5 Fedora Update System 2013-05-16 17:23:11 UTC
Package polkit-0.111-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing polkit-0.111-1.fc19'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-8364/polkit-0.111-1.fc19
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-05-28 02:17:15 UTC
polkit-0.111-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


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