From 6525fe14b803f3fc54e9cf3f4aa3243e06e04094 Mon Sep 17 00:00:00 2001 From: Hao <14084342+Ricky-Hao@users.noreply.github.com> Date: Sat, 4 Nov 2023 16:47:09 +0000 Subject: [PATCH 1/4] Add more jail mount to ddns-go --- net/ddns-go/files/ddns-go.init | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/ddns-go/files/ddns-go.init b/net/ddns-go/files/ddns-go.init index 606eb6d24c..34f9814801 100644 --- a/net/ddns-go/files/ddns-go.init +++ b/net/ddns-go/files/ddns-go.init @@ -36,12 +36,16 @@ start_service() { procd_set_param respawn procd_set_param stderr 1 procd_set_param user ddns-go + procd_set_param env PATH=/usr/sbin:/usr/bin:/sbin:/bin procd_add_jail "$CONF" log procd_add_jail_mount_rw "$YAML" procd_add_jail_mount "/etc/localtime" procd_add_jail_mount "/etc/TZ" procd_add_jail_mount "/etc/ssl/" + procd_add_jail_mount "/bin/" + procd_add_jail_mount "/sbin/" + procd_add_jail_mount "/usr/" procd_close_instance } From a91fae9753567e64acd4cf10387cd4840b641de5 Mon Sep 17 00:00:00 2001 From: Hao <14084342+Ricky-Hao@users.noreply.github.com> Date: Sat, 4 Nov 2023 16:51:17 +0000 Subject: [PATCH 2/4] replace space with tab --- net/ddns-go/files/ddns-go.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ddns-go/files/ddns-go.init b/net/ddns-go/files/ddns-go.init index 34f9814801..cde6be8f16 100644 --- a/net/ddns-go/files/ddns-go.init +++ b/net/ddns-go/files/ddns-go.init @@ -44,8 +44,8 @@ start_service() { procd_add_jail_mount "/etc/TZ" procd_add_jail_mount "/etc/ssl/" procd_add_jail_mount "/bin/" - procd_add_jail_mount "/sbin/" - procd_add_jail_mount "/usr/" + procd_add_jail_mount "/sbin/" + procd_add_jail_mount "/usr/" procd_close_instance } From 99d062762c25d6faf92762452366eb0c79714727 Mon Sep 17 00:00:00 2001 From: Hao <14084342+Ricky-Hao@users.noreply.github.com> Date: Sun, 5 Nov 2023 11:30:46 +0000 Subject: [PATCH 3/4] Remove jail --- net/ddns-go/files/ddns-go.init | 9 --------- 1 file changed, 9 deletions(-) diff --git a/net/ddns-go/files/ddns-go.init b/net/ddns-go/files/ddns-go.init index cde6be8f16..26f593b2a5 100644 --- a/net/ddns-go/files/ddns-go.init +++ b/net/ddns-go/files/ddns-go.init @@ -38,15 +38,6 @@ start_service() { procd_set_param user ddns-go procd_set_param env PATH=/usr/sbin:/usr/bin:/sbin:/bin - procd_add_jail "$CONF" log - procd_add_jail_mount_rw "$YAML" - procd_add_jail_mount "/etc/localtime" - procd_add_jail_mount "/etc/TZ" - procd_add_jail_mount "/etc/ssl/" - procd_add_jail_mount "/bin/" - procd_add_jail_mount "/sbin/" - procd_add_jail_mount "/usr/" - procd_close_instance } From 58e13d5a100f06ea4b92d449b4215901623cff1e Mon Sep 17 00:00:00 2001 From: Hao <14084342+Ricky-Hao@users.noreply.github.com> Date: Sun, 5 Nov 2023 14:26:09 +0000 Subject: [PATCH 4/4] Sure, remove it. --- net/ddns-go/files/ddns-go.init | 1 - 1 file changed, 1 deletion(-) diff --git a/net/ddns-go/files/ddns-go.init b/net/ddns-go/files/ddns-go.init index 26f593b2a5..d9ff866a1d 100644 --- a/net/ddns-go/files/ddns-go.init +++ b/net/ddns-go/files/ddns-go.init @@ -36,7 +36,6 @@ start_service() { procd_set_param respawn procd_set_param stderr 1 procd_set_param user ddns-go - procd_set_param env PATH=/usr/sbin:/usr/bin:/sbin:/bin procd_close_instance }