From ab540e6990a26950a8bee31ae306928f573f0874 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Thu, 28 Oct 2021 17:13:38 +0800 Subject: [PATCH] xray-core: remove dead jail files It never works... And Xray-core needs root access to work. Bump geodata to latest version while at it. Signed-off-by: Tianling Shen --- net/xray-core/Makefile | 11 ++++------- net/xray-core/files/xray.capabilities | 10 ---------- net/xray-core/files/xray.init | 7 ------- 3 files changed, 4 insertions(+), 24 deletions(-) delete mode 100644 net/xray-core/files/xray.capabilities diff --git a/net/xray-core/Makefile b/net/xray-core/Makefile index 12655e9e9..c5d8a6045 100644 --- a/net/xray-core/Makefile +++ b/net/xray-core/Makefile @@ -78,24 +78,24 @@ define Package/xray-core/conffiles /etc/config/xray endef -GEOIP_VER:=202109060310 +GEOIP_VER:=202110210032 GEOIP_FILE:=geoip.dat.$(GEOIP_VER) define Download/geoip URL:=https://github.com/v2fly/geoip/releases/download/$(GEOIP_VER)/ URL_FILE:=geoip.dat FILE:=$(GEOIP_FILE) - HASH:=ed94122961f358abede9f1954722039d5a0300b614c77cc27d92618c08b97bb8 + HASH:=932cd484471f8066c040ab84a04fdd70df6c5cee99545de610e1f337bb696220 endef -GEOSITE_VER:=20210906031055 +GEOSITE_VER:=20211018134657 GEOSITE_FILE:=dlc.dat.$(GEOSITE_VER) define Download/geosite URL:=https://github.com/v2fly/domain-list-community/releases/download/$(GEOSITE_VER)/ URL_FILE:=dlc.dat FILE:=$(GEOSITE_FILE) - HASH:=7618b876fd5a1066d0b44c1c8ce04608495ae991806890f8b1cbfafe79caf6c1 + HASH:=60b2388b11f1f9b6e14794fbacdf3bf693e3101e3ec651ce5423d8caceda5497 endef define Build/Prepare @@ -118,9 +118,6 @@ define Package/xray-core/install $(INSTALL_CONF) $(CURDIR)/files/xray.conf $(1)/etc/config/xray $(INSTALL_DIR) $(1)/etc/init.d/ $(INSTALL_BIN) $(CURDIR)/files/xray.init $(1)/etc/init.d/xray - - $(INSTALL_DIR) $(1)/etc/capabilities/ - $(INSTALL_DATA) $(CURDIR)/files/xray.capabilities $(1)/etc/capabilities/xray.json endef define Package/xray-example/install diff --git a/net/xray-core/files/xray.capabilities b/net/xray-core/files/xray.capabilities deleted file mode 100644 index 8c184afa4..000000000 --- a/net/xray-core/files/xray.capabilities +++ /dev/null @@ -1,10 +0,0 @@ -{ - "ambient": [ - "CAP_NET_ADMIN", - "CAP_NET_BIND_SERVICE" - ], - "bounding": [ - "CAP_NET_ADMIN", - "CAP_NET_BIND_SERVICE" - ] -} diff --git a/net/xray-core/files/xray.init b/net/xray-core/files/xray.init index e0ebf092c..04b00232b 100755 --- a/net/xray-core/files/xray.init +++ b/net/xray-core/files/xray.init @@ -5,7 +5,6 @@ START=99 CONF="xray" PROG="/usr/bin/xray" -CAPA_FILE="/etc/capabilities/xray.json" start_service() { config_load "$CONF" @@ -44,12 +43,6 @@ start_service() { procd_set_param stderr 1 procd_set_param respawn - [ -x "/sbin/ujail" -a -e "$CAPA_FILE" ] && { - procd_add_jail "$CONF" - procd_set_param capabilities "$CAPA_FILE" - procd_set_param user nobody - procd_set_param no_new_privs 1 - } procd_close_instance }