Re: PAM session setup and environment variables

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Tue, Dec 17, 2024 at 5:40 AM Damien Miller <djm@xxxxxxxxxxx> wrote:

> User-specified environment variables are not propogated to the
> environment where sshd invokes PAM modules because the SSH protocol
> sends them at the time a session is opened, well after authentication
> has completed. At best, they could be made available to the PAM
> session modules but there's no way to make user-specified environment
> available to auth and account modules.

I am interested in pam_systemd.so which is a session module. Hence,
would you accept a patch that exposes these variables during this
phase of a session setup?

> Similarly, environment variables _set by_ PAM override anything the
> user set by SetEnv/SendEnv, on the basis that admin-specified
> environment shouldn't be manipuable by a (usually) unprivileged
> user.

I think this makes sense and shouldn't be changed.

Michal
>
> -d
>

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux