diff mbox series

[meta-selinux,1/1] openssh: Add pam_env support

Message ID 5458dad2-27ec-4826-be91-4fa5428a8f11@gmail.com
State New
Headers show
Series openssh: Add pam_env support | expand

Commit Message

Clayton Casciato Jan. 28, 2026, 5:41 p.m. UTC
From:
https://git.openembedded.org/openembedded-core/commit/meta/recipes-connectivity/openssh/openssh/sshd?id=4e6762f5967b1996cf31ae100fa49e775dfb2866

Make setting environment variables in /etc/environment or
/etc/security/pam_env.conf take effect for ssh session.

[ YOCTO # 15767]

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com>
---
Sponsor: 21SoftWare LLC

 recipes-connectivity/openssh/files/sshd | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/recipes-connectivity/openssh/files/sshd b/recipes-connectivity/openssh/files/sshd
index 72303eb..06d4e78 100644
--- a/recipes-connectivity/openssh/files/sshd
+++ b/recipes-connectivity/openssh/files/sshd
@@ -15,6 +15,7 @@  password   include      common-password
 session    optional     pam_keyinit.so force revoke
 session    include      common-session
 session    required     pam_loginuid.so
+session    required     pam_env.so
 
 # SELinux needs to intervene at login time to ensure that the process
 # starts in the proper default security context. Only sessions which are