diff options
author | nicm <nicm> | 2022-05-30 12:48:57 +0000 |
---|---|---|
committer | nicm <nicm> | 2022-05-30 12:48:57 +0000 |
commit | cd692b5a68be0eb95252380db97fbbec587d6350 (patch) | |
tree | 6135b8c3512fc0d882e990907cc98f88d63716a4 /client.c | |
parent | d4423dca19d6d5cbaa97336a744ec760841c3816 (diff) | |
download | rtmux-cd692b5a68be0eb95252380db97fbbec587d6350.tar.gz rtmux-cd692b5a68be0eb95252380db97fbbec587d6350.tar.bz2 rtmux-cd692b5a68be0eb95252380db97fbbec587d6350.zip |
Add an ACL list for users connecting to the tmux socket. Users may be
forbidden from attaching, forced to attach read-only, or allowed to
attach read-write. A new command, server-access, configures the list.
tmux gets the user using getpeereid(3) of the client socket. Users must
still configure file system permissions manually. From Dallas Lyons and
others.
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -360,6 +360,7 @@ client_main(struct event_base *base, int argc, char **argv, uint64_t flags, /* Send identify messages. */ client_send_identify(ttynam, termname, caps, ncaps, cwd, feat); tty_term_free_list(caps, ncaps); + proc_flush_peer(client_peer); /* Send first command. */ if (msg == MSG_COMMAND) { |