]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/dbus-execute.c
core: optionally create LOGIN_PROCESS or USER_PROCESS utmp entries
authorLennart Poettering <lennart@poettering.net>
Sun, 23 Aug 2015 11:14:04 +0000 (13:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 Aug 2015 20:46:45 +0000 (22:46 +0200)
commit023a4f67011f24d4b085995a4a3a02661c4794a2
treec513fa8120c95cb04b19db69d56a4af8a1b8a129
parent53496ca9adc383bd8aa28e8f75f1b21c2cc82b05
core: optionally create LOGIN_PROCESS or USER_PROCESS utmp entries

When generating utmp/wtmp entries, optionally add both LOGIN_PROCESS and
INIT_PROCESS entries or even all three of LOGIN_PROCESS, INIT_PROCESS
and USER_PROCESS entries, instead of just a single INIT_PROCESS entry.

With this change systemd may be used to not only invoke a getty directly
in a SysV-compliant way but alternatively also a login(1) implementation
or even forego getty and login entirely, and invoke arbitrary shells in
a way that they appear in who(1) or w(1).

This is preparation for a later commit that adds a "machinectl shell"
operation to invoke a shell in a container, in a way that is compatible
with who(1) and w(1).
man/systemd.exec.xml
src/core/dbus-execute.c
src/core/execute.c
src/core/execute.h
src/core/load-fragment-gperf.gperf.m4
src/core/load-fragment.c
src/core/load-fragment.h
src/shared/utmp-wtmp.c
src/shared/utmp-wtmp.h