#1134703 enable pam_env /etc/environment.d support

#1134703#5
Date:
2026-04-23 10:23:00 UTC
From:
To:
Dear maintainer,

upstream Linux-PAM already supports reading `/etc/environment.d/*` in
`pam_env` when built with `libeconf` support. [1]

At the moment, `/etc/environment.d/*` does not appear to be supported by
Debian’s `pam_env`.

Could you please consider enabling this in Debian?

Adding `libeconf` to `Build-Depends` may be sufficient. In Debian’s
`meson.build`, `USE_ECONF` is enabled when `libeconf` is found: [2]

if libeconf.found()
   cdata.set('USE_ECONF', 1)
endif

This in turn enables the `with_vendordir_and_with_econf` path, which
also causes the `pam_env` and `pam_shells` man pages to mention
`/etc/environment.d`.

Thank you for maintaining pam in Debian.

Cheers,
Patrick

[1]
https://github.com/linux-pam/linux-pam/blob/master/modules/pam_env/pam_env.8.xml
[2] https://sources.debian.org/src/pam/1.7.0-5/meson.build