mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-24 18:56:59 +07:00
execute: apply PAM logic only to main process if PermissionsStartOnly is set
https://bugs.freedesktop.org/show_bug.cgi?id=54176
This commit is contained in:
parent
5f29d24dec
commit
b7848021c3
2
TODO
2
TODO
@ -28,8 +28,6 @@ F18:
|
||||
|
||||
* Retest multi-seat
|
||||
|
||||
* selinux: merge systemd selinux access controls (dwalsh)
|
||||
|
||||
Features:
|
||||
|
||||
* instantiated target units
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user