From 562fb3aa0afb08bd60eb54aa3f5d8bbe4dbbe86b Mon Sep 17 00:00:00 2001 From: BackSlasher Date: Thu, 9 Mar 2023 10:13:39 +0200 Subject: [PATCH] udp-broadcast-relay-redux-openwrt: add cgroupsns to jail Added `cgroupsns` to jail, otherwise you get this failure: ``` Mon Mar 6 14:46:05 2023 user.err : jail: Not using namespaces, capabilities or seccomp !!! ``` Error is here, seems to indicate that we're running a jail without using any capability. https://lxr.openwrt.org/source/procd/jail/jail.c#L2847 Decided to use minimal effort approach Signed-off-by: BackSlasher --- net/udp-broadcast-relay-redux-openwrt/Makefile | 2 +- .../files/udp-broadcast-relay-redux.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/udp-broadcast-relay-redux-openwrt/Makefile b/net/udp-broadcast-relay-redux-openwrt/Makefile index f3854fb809..8f120d9441 100644 --- a/net/udp-broadcast-relay-redux-openwrt/Makefile +++ b/net/udp-broadcast-relay-redux-openwrt/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=udp-broadcast-relay-redux -PKG_RELEASE:=$(AUTORELEASE) +PKG_RELEASE:=2 PKG_LICENSE:=GPL-2.0 PKG_SOURCE_PROTO:=git diff --git a/net/udp-broadcast-relay-redux-openwrt/files/udp-broadcast-relay-redux.init b/net/udp-broadcast-relay-redux-openwrt/files/udp-broadcast-relay-redux.init index aa35f55462..6694215885 100644 --- a/net/udp-broadcast-relay-redux-openwrt/files/udp-broadcast-relay-redux.init +++ b/net/udp-broadcast-relay-redux-openwrt/files/udp-broadcast-relay-redux.init @@ -58,7 +58,7 @@ udp_broadcast_relay_redux_instance() { procd_append_param command "-t" "$dest_override" fi - procd_add_jail ubr-${PIDCOUNT} + procd_add_jail ubr-${PIDCOUNT} cgroupsns procd_close_instance } -- 2.30.2