]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/execute.c
core: when setting up PAM, try to get tty of STDIN_FILENO if not set explicitly
authorLennart Poettering <lennart@poettering.net>
Fri, 3 Aug 2018 19:30:16 +0000 (21:30 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 20 Aug 2018 10:28:17 +0000 (12:28 +0200)
commit3cd24c1aa93b17420430ad6e413223dfd1b52355
treee6de8430e7fb38aca434f845fb908cc85d8c0c86
parent37ec0fdd3443a77a5120cf55002fedcb5b1dd069
core: when setting up PAM, try to get tty of STDIN_FILENO if not set explicitly

When stdin/stdout/stderr is initialized from an fd, let's read the tty
name of it if we can, and pass that to PAM.

This makes sure that "machinectl shell" sessions have proper TTY fields
initialized that "loginctl" then shows.
src/core/execute.c