mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-09-22 18:42:55 +02:00
Use restrict key option with svn-{packages,community}
No functional change; the "restrict" key option is a shorthand for: - no-agent-forwarding - no-port-forwarding - no-X11-forwarding - no-pty - no-user-rc It was added in OpenSSH 7.2 (2016-02-29) as a convenient way to specify an authorized key should have "all current and future key restrictions" applied to it.
This commit is contained in:
parent
1d8d133e8b
commit
ef3e01ce61
@ -5,7 +5,7 @@
|
||||
{% set keys = lookup('file', '../pubkeys/'+user+'.pub').split("\n") %}
|
||||
{% for key in keys | sort %}
|
||||
{% if "command" not in key -%}
|
||||
command="/usr/bin/svnserve --tunnel-user={{user}} -t",no-port-forwarding,no-agent-forwarding,no-pty {{key}}
|
||||
command="/usr/bin/svnserve --tunnel-user={{user}} -t",restrict {{key}}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user