Support local DNS publishing over a restricted Unix socket
This commit is contained in:
1 parent
ffdeb5fe69
commit
6e075c25f4
6 files changed
+134
-12
No files matched your search
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Coulobre local BIND9 publishing socket
|
||||
|
||||
[Socket]
|
||||
ListenStream=/run/coulobre-dns-apply.sock
|
||||
SocketUser=root
|
||||
SocketGroup=coulobre-dns-provisioning
|
||||
SocketMode=0660
|
||||
Accept=yes
|
||||
MaxConnections=4
|
||||
RemoveOnStop=true
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=Coulobre local BIND9 publishing request
|
||||
After=named.service
|
||||
CollectMode=inactive-or-failed
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
User=root
|
||||
WorkingDirectory=/opt/coulobre
|
||||
UMask=0022
|
||||
ExecStart=/opt/coulobre/bin/coulobre-dns-node apply-request
|
||||
StandardInput=socket
|
||||
StandardOutput=socket
|
||||
StandardError=journal
|
||||
RuntimeMaxSec=3min
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectHome=true
|
||||
ProtectSystem=strict
|
||||
ReadWritePaths=/etc/bind/coulobre
|
||||
Reference in new issue
Block a user