[SOLVED] create s6 service - how to manage permissions?
I tried to create my own s6 service for coredns by copy pasting some stuff, but in the log it says it doesn't have enough permissions:
2021-12-02 14:24:28.804505739 Listen: listen tcp :53: bind: permission denied
In systemd it was solved like this:
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
My srv-run file looks like this:
#!/bin/execlineb -P
fdmove -c 2 1
s6-setuidgid coredns exec coredns -conf=/etc/coredns/Corefile
If needed, I can provide more information.