Add an ACL list for users connecting to the tmux socket. Users may be
authornicm <nicm@openbsd.org>
Mon, 30 May 2022 12:48:57 +0000 (12:48 +0000)
committernicm <nicm@openbsd.org>
Mon, 30 May 2022 12:48:57 +0000 (12:48 +0000)
commit8ab000fc3eeeba726aae5012ad093c888904bbb4
treef8b15d9ffa84209aa26de2ae4b02398f2b8ba5c5
parent3678e56310dae9964579f0b551e6d3010cc8e371
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.
12 files changed:
usr.bin/tmux/Makefile
usr.bin/tmux/client.c
usr.bin/tmux/cmd-attach-session.c
usr.bin/tmux/cmd-queue.c
usr.bin/tmux/cmd-server-access.c [new file with mode: 0644]
usr.bin/tmux/cmd.c
usr.bin/tmux/proc.c
usr.bin/tmux/server-acl.c [new file with mode: 0644]
usr.bin/tmux/server-client.c
usr.bin/tmux/server.c
usr.bin/tmux/tmux.1
usr.bin/tmux/tmux.h