aboutsummarylogtreecommitdiffstats
path: root/caddy-systemd-service.patch
diff options
context:
space:
mode:
authorThomas Fanninger2016-09-29 16:59:58 +0200
committerAndreas Linz2016-09-29 18:26:21 +0200
commit58cf2b8275c3f999421d52b07cd80b02a4929935 (patch)
tree76cb08c84b66c40479990b3bf207d95b5ecf53a2 /caddy-systemd-service.patch
parent3977b933d3cd7bdf342dd40ff845989d213bb705 (diff)
downloadaur-58cf2b8275c3f999421d52b07cd80b02a4929935.tar.gz
Add migration from user www-data to http
Diffstat (limited to 'caddy-systemd-service.patch')
-rw-r--r--caddy-systemd-service.patch29
1 files changed, 14 insertions, 15 deletions
diff --git a/caddy-systemd-service.patch b/caddy-systemd-service.patch
index 779703c9247d..3f85f13f9988 100644
--- a/caddy-systemd-service.patch
+++ b/caddy-systemd-service.patch
@@ -1,15 +1,14 @@
---- init/linux-systemd/caddy.service 2016-09-28 21:07:57.000000000 +0200
-+++ init/linux-systemd/caddy.service.patched 2016-09-29 13:51:35.533691718 +0200
-@@ -38,9 +38,9 @@
- ; The following additional security directives only work with systemd v229 or later.
- ; They further retrict privileges that can be gained by caddy. Uncomment if you like.
- ; Note that you may have to add capabilities required by any plugins in use.
--;CapabilityBoundingSet=CAP_NET_BIND_SERVICE
--;AmbientCapabilities=CAP_NET_BIND_SERVICE
--;NoNewPrivileges=true
-+CapabilityBoundingSet=CAP_NET_BIND_SERVICE
-+AmbientCapabilities=CAP_NET_BIND_SERVICE
-+NoNewPrivileges=true
-
- [Install]
- WantedBy=multi-user.target
+11,12c11,12
+< User=www-data
+< Group=www-data
+---
+> User=http
+> Group=http
+41,43c41,43
+< ;CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+< ;AmbientCapabilities=CAP_NET_BIND_SERVICE
+< ;NoNewPrivileges=true
+---
+> CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+> AmbientCapabilities=CAP_NET_BIND_SERVICE
+> NoNewPrivileges=true