sd-login: add SetTTY session object #26611
This commit is contained in:
committed by
Lennart Poettering
parent
4d26b2277a
commit
092e6cd19a
@@ -1083,6 +1083,7 @@ node /org/freedesktop/login1/session/1 {
|
||||
ReleaseControl();
|
||||
SetType(in s type);
|
||||
SetDisplay(in s display);
|
||||
SetTTY(in h tty_fd);
|
||||
TakeDevice(in u major,
|
||||
in u minor,
|
||||
out h fd,
|
||||
@@ -1182,6 +1183,8 @@ node /org/freedesktop/login1/session/1 {
|
||||
|
||||
<variablelist class="dbus-method" generated="True" extra-ref="SetDisplay()"/>
|
||||
|
||||
<variablelist class="dbus-method" generated="True" extra-ref="SetTTY()"/>
|
||||
|
||||
<variablelist class="dbus-method" generated="True" extra-ref="TakeDevice()"/>
|
||||
|
||||
<variablelist class="dbus-method" generated="True" extra-ref="ReleaseDevice()"/>
|
||||
@@ -1283,6 +1286,11 @@ node /org/freedesktop/login1/session/1 {
|
||||
controller. If <function>TakeControl()</function> has not been called, this method will fail. The only argument
|
||||
<varname>display</varname> is the new display name.</para>
|
||||
|
||||
<para><function>SetTTY()</function> allows the device name of the session to be changed. This is
|
||||
useful if the tty device is only known after authentication. It can only be called by session's
|
||||
current controller. If <function>TakeControl()</function> has not been called, this method will fail.
|
||||
The only argument <varname>tty_fd</varname> is a file handle to the new tty device.</para>
|
||||
|
||||
<para><function>TakeDevice()</function> allows a session controller to get a file descriptor for a
|
||||
specific device. Pass in the major and minor numbers of the character device and
|
||||
<filename>systemd-logind</filename> will return a file descriptor for the device. Only a limited set of
|
||||
|
||||
Reference in New Issue
Block a user