Replace the session-keyring option with a configure option

Join the new session keyring when the server starts rather than once the
configuration file has been loaded, and control it at build time with
--enable-keyring, on by default if linux/keyctl.h is found.

Rename keyring_join and keyring_revoke to new_session_keyring and
revoke_session_keyring.
This commit is contained in:
Ilya Priven
2026-10-12 11:26:28 +00:00
parent 3d0839b7a3
commit 90cc41de32
8 changed files with 34 additions and 60 deletions

8
tmux.1
View File

@@ -5096,14 +5096,6 @@ each client.
.It Ic prompt\-history\-limit Ar number
Set the number of history items to save in the history file for each type of
command prompt.
.It Xo Ic session\-keyring
.Op Cm on | off
.Xc
On Linux, if enabled (the default), the server joins a new session keyring with
the user keyring linked into it, rather than keeping the session keyring of the
login session it was started from, which may be revoked when that session ends.
The new keyring is revoked when the server exits.
This option is checked once the configuration file has been loaded.
.It Xo Ic set\-clipboard
.Op Cm on | external | off
.Xc