snowflake: run snowflake-proxy with procd-ujail 19445/head
authorDaniel Golle <daniel@makrotopia.org>
Sun, 25 Sep 2022 00:28:43 +0000 (01:28 +0100)
committerNick Hainke <vincent@systemli.org>
Sun, 25 Sep 2022 05:34:12 +0000 (07:34 +0200)
commit8aa01bc1d7efcb68bab9128401bc61a3c79b2834
tree49eaa7afec1673956f4faaf2eb188476235a9a7e
parent78e33302879bbc334d1ec5a6a05dd5c0f40de4a3
snowflake: run snowflake-proxy with procd-ujail

snowflake-proxy doesn't write any files
 => run in read-only rootfs environment

the process needs to read SSL certs but no other files
 => only exposed path is /etc/ssl/certificates (read-only)

running as unpriviledged user with no additional capabilities
 => set no-new-privs bit

By default procd-ujail also isolates the process by executing it in
a separate new IPC and PID namespace.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 0f3d48a3784fb495ffdfe4a83f540ad42fab89df)
Signed-off-by: Nick Hainke <vincent@systemli.org>
net/snowflake/Makefile
net/snowflake/files/snowflake-proxy.init [changed mode: 0755->0644]