Restrict permissions of container

This commit is contained in:
Julian-Samuel Gebühr 2022-07-09 13:44:41 +02:00
parent bcd7ec714b
commit 05c1333ebb

View File

@ -18,9 +18,9 @@ ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }}
ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-bot-maubot \
--log-driver=none \
-e UID={{ matrix_user_uid }} \
-e GID={{ matrix_user_gid }} \
--user={{ matrix_user_uid }}:{{ matrix_user_gid }} \
--read-only \
--cap-drop=ALL \
-v {{ matrix_bot_maubot_data_path }}:/data:z \
{% for arg in matrix_bot_maubot_container_extra_arguments %}
{{ arg }} \