Apply cap_net_raw to knockd to allow rootless auto-pause (#2625)

This commit is contained in:
Geoff Bourne authored and GitHub committed 2024-02-02 22:23:07 -06:00
1 parent 600472d7eb
commit 63b2e4484d
3 files changed
+5 -1

No files matched your search

+1
View File
@@ -46,3 +46,4 @@ bash /build/ol/install-gosu.sh
curl -fsSL -o /tmp/knock.tar.gz https://github.com/Metalcape/knock/releases/download/0.8.1/knock-0.8.1-$TARGET.tar.gz
tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
ln -s /usr/local/sbin/knockd /usr/sbin/knockd
setcap cap_net_raw=ep /usr/local/sbin/knockd