From 092e6cd19adf1ff6bc979034cbe287d92ca2efd7 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Wed, 19 Apr 2023 16:11:55 +0200 Subject: sd-login: add SetTTY session object #26611 --- man/org.freedesktop.login1.xml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'man') diff --git a/man/org.freedesktop.login1.xml b/man/org.freedesktop.login1.xml index 6781e1dcaa..034fd1078f 100644 --- a/man/org.freedesktop.login1.xml +++ b/man/org.freedesktop.login1.xml @@ -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 { + + @@ -1283,6 +1286,11 @@ node /org/freedesktop/login1/session/1 { controller. If TakeControl() has not been called, this method will fail. The only argument display is the new display name. + SetTTY() 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 TakeControl() has not been called, this method will fail. + The only argument tty_fd is a file handle to the new tty device. + TakeDevice() 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 systemd-logind will return a file descriptor for the device. Only a limited set of -- cgit v1.2.1