diff build.rs @ 100:3f11b8d30f63

Implement environment variable management. This actually wires up the environment variable handling to libpam, so that applications and modules can manage the environment through the authentication process.
author Paul Fisher <paul@pfish.zone>
date Tue, 24 Jun 2025 17:08:01 -0400
parents efe2f5f8b5b2
children
line wrap: on
line diff
--- a/build.rs	Tue Jun 24 14:54:47 2025 -0400
+++ b/build.rs	Tue Jun 24 17:08:01 2025 -0400
@@ -14,13 +14,13 @@
             .allowlist_var(".*")
             .allowlist_function("pam_start")
             .allowlist_function("pam_[gs]et_item")
-            .allowlist_function("pam_get_user")
-            .allowlist_function("pam_get_authtok")
+            .allowlist_function("pam_get_(user|authtok)")
             .allowlist_function("pam_end")
             .allowlist_function("pam_strerror")
             .allowlist_function("pam_authenticate")
             .allowlist_function("pam_chauthtok")
             .allowlist_function("pam_acct_mgmt")
+            .allowlist_function("pam_(ge|pu)tenv(list)?")
             .default_macro_constant_type(MacroTypeVariation::Unsigned);
 
         let linux_builder = common_builder