chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
execute: apply PAM logic only to main process if PermissionsStartOnly is set
[elogind.git]
/
src
/
core
/
execute.c
diff --git
a/src/core/execute.c
b/src/core/execute.c
index 6e2b5e48a01c7be317ba292392dd0316656a17fa..cb703cbad8cc5072ad43b1a82285cca8b4602bd9 100644
(file)
--- a/
src/core/execute.c
+++ b/
src/core/execute.c
@@
-1283,7
+1283,7
@@
int exec_spawn(ExecCommand *command,
umask(context->umask);
#ifdef HAVE_PAM
umask(context->umask);
#ifdef HAVE_PAM
- if (context->pam_name && username) {
+ if (
apply_permissions &&
context->pam_name && username) {
err = setup_pam(context->pam_name, username, uid, context->tty_path, &pam_env, fds, n_fds);
if (err < 0) {
r = EXIT_PAM;
err = setup_pam(context->pam_name, username, uid, context->tty_path, &pam_env, fds, n_fds);
if (err < 0) {
r = EXIT_PAM;