diff options
author | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2023-05-27 08:09:11 -0300 |
---|---|---|
committer | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2023-10-19 10:56:54 +0200 |
commit | e8f8f5ac734181ca313f0966f4397d9888baebd4 (patch) | |
tree | 2d92ce88f88342f5dd3e8282d8f3abd9282f1ceb /src/shared | |
parent | 3f4314e7cb68efbbec648f06cf509c963750c03e (diff) |
openrc-pam: introduction of a PAM module for --user
the module gets the pam user and executes a new login shell, in order to
load the user's environment. this requires that the user's login shell
supports `-c` as an option to run a command. all shells that i know of
do.
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/misc.c b/src/shared/misc.c index 6970513f..9b40ce36 100644 --- a/src/shared/misc.c +++ b/src/shared/misc.c @@ -87,6 +87,8 @@ env_filter(void) rc_stringlist_addu(env_allow, "XDG_RUNTIME_DIR"); rc_stringlist_addu(env_allow, "XDG_CONFIG_HOME"); rc_stringlist_addu(env_allow, "RC_USER_SERVICES"); + rc_stringlist_addu(env_allow, "RC_PAM_STARTING"); + rc_stringlist_addu(env_allow, "RC_PAM_STOPPING"); } #endif /* |