comparison 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
comparison
equal deleted inserted replaced
99:8840fa6534f6 100:3f11b8d30f63
12 .blocklist_type("pam_handle") 12 .blocklist_type("pam_handle")
13 .blocklist_type("pam_conv") 13 .blocklist_type("pam_conv")
14 .allowlist_var(".*") 14 .allowlist_var(".*")
15 .allowlist_function("pam_start") 15 .allowlist_function("pam_start")
16 .allowlist_function("pam_[gs]et_item") 16 .allowlist_function("pam_[gs]et_item")
17 .allowlist_function("pam_get_user") 17 .allowlist_function("pam_get_(user|authtok)")
18 .allowlist_function("pam_get_authtok")
19 .allowlist_function("pam_end") 18 .allowlist_function("pam_end")
20 .allowlist_function("pam_strerror") 19 .allowlist_function("pam_strerror")
21 .allowlist_function("pam_authenticate") 20 .allowlist_function("pam_authenticate")
22 .allowlist_function("pam_chauthtok") 21 .allowlist_function("pam_chauthtok")
23 .allowlist_function("pam_acct_mgmt") 22 .allowlist_function("pam_acct_mgmt")
23 .allowlist_function("pam_(ge|pu)tenv(list)?")
24 .default_macro_constant_type(MacroTypeVariation::Unsigned); 24 .default_macro_constant_type(MacroTypeVariation::Unsigned);
25 25
26 let linux_builder = common_builder 26 let linux_builder = common_builder
27 .clone() 27 .clone()
28 // This function is not available in OpenPAM. 28 // This function is not available in OpenPAM.