Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 625234 - sys-auth/pambase - process /etc/profile.env in system-login
Summary: sys-auth/pambase - process /etc/profile.env in system-login
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-15 18:41 UTC by Mike Gilbert
Modified: 2019-11-28 18:21 UTC (History)
1 user (show)

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 Mike Gilbert gentoo-dev 2017-07-15 18:41:34 UTC
I would like to add the following line to system-login:

session     required    pam_env.so envfile=/etc/profile.env

This will cause the settings in profile.env to be exported into the environment by the pam_env module. This will make the environment variables available when the login process is not a user shell.

For example, the sftp subsystem of sshd launches the sftp-server binary directly, bypassing any shell startup files. As a concrete example, this would resolve the issue I reported here:

https://github.com/ewxrjk/sftpserver/issues/5
Comment 1 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-08-22 22:12:09 UTC
I agree that it should be added, will commit it into master within a day.
Comment 2 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-11-28 18:21:20 UTC
in pambase master now.