mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 01:27:11 +03:00
execute: properly pass PAM environment to executed process
This commit is contained in:
parent
9a0e689634
commit
aa87e62474
@ -898,6 +898,9 @@ static int setup_pam(
|
|||||||
* might have opened it, but we don't want this fd around. */
|
* might have opened it, but we don't want this fd around. */
|
||||||
closelog();
|
closelog();
|
||||||
|
|
||||||
|
*pam_env = e;
|
||||||
|
e = NULL;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
@ -1063,7 +1066,7 @@ int exec_spawn(ExecCommand *command,
|
|||||||
|
|
||||||
/* This string must fit in 10 chars (i.e. the length
|
/* This string must fit in 10 chars (i.e. the length
|
||||||
* of "/sbin/init") */
|
* of "/sbin/init") */
|
||||||
rename_process("sd.exec");
|
rename_process("sd(EXEC)");
|
||||||
|
|
||||||
/* We reset exactly these signals, since they are the
|
/* We reset exactly these signals, since they are the
|
||||||
* only ones we set to SIG_IGN in the main daemon. All
|
* only ones we set to SIG_IGN in the main daemon. All
|
||||||
|
Loading…
Reference in New Issue
Block a user