From c445e44c507c8abe0b5e611e2ee2df7d256596a1 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Tue, 28 Nov 2023 15:17:58 -0500 Subject: [PATCH] Add a script that allows caddy to access a dir in selinux --- scripts/se-caddy-allow | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 scripts/se-caddy-allow diff --git a/scripts/se-caddy-allow b/scripts/se-caddy-allow new file mode 100644 index 0000000..95027eb --- /dev/null +++ b/scripts/se-caddy-allow @@ -0,0 +1,5 @@ +#! /bin/bash +set -ex + +sudo chcon -t httpd_sys_content_t $1 -R +sudo chcon -t httpd_sys_rw_content_t $1 -R