diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-09-18 10:54:23 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-18 10:54:23 +0200 |
commit | b7848021c3b058086243071b122077fc4fa1106e (patch) | |
tree | 68c998e738a1cec1c2ca30ff5e935c6b20088ba8 /src/core | |
parent | 5f29d24decf9f48227b4970a65122b1adac84ffa (diff) |
execute: apply PAM logic only to main process if PermissionsStartOnly is set
https://bugs.freedesktop.org/show_bug.cgi?id=54176
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/execute.c b/src/core/execute.c index 6e2b5e48a0..cb703cbad8 100644 --- 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 - 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; |