xray-core: remove dead jail files
authorTianling Shen <cnsztl@immortalwrt.org>
Thu, 28 Oct 2021 09:13:38 +0000 (17:13 +0800)
committerRosen Penev <rosenp@gmail.com>
Sat, 30 Oct 2021 08:06:40 +0000 (01:06 -0700)
It never works... And Xray-core needs root access to work.

Bump geodata to latest version while at it.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
net/xray-core/Makefile
net/xray-core/files/xray.capabilities [deleted file]
net/xray-core/files/xray.init

index 12655e9e9c12fd14ddb938b0a5cefa3e75144fa0..c5d8a604575c4f9fc587e27c50efb75dd8bdc04f 100644 (file)
@@ -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 (file)
index 8c184af..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-{
-       "ambient": [
-               "CAP_NET_ADMIN",
-               "CAP_NET_BIND_SERVICE"
-       ],
-       "bounding": [
-               "CAP_NET_ADMIN",
-               "CAP_NET_BIND_SERVICE"
-       ]
-}
index e0ebf092c7c8061341281369936a3a4d9bba31e8..04b00232b9e187dcd16bf7e04cebadec0754a691 100755 (executable)
@@ -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
 }