From a1655951168225e1e082ea3eb263108d25227119 Mon Sep 17 00:00:00 2001 From: Vincent Li Date: Fri, 4 Oct 2024 02:47:24 +0000 Subject: [PATCH] xdp-dns: allow UI to run xdp_dns to update map Signed-off-by: Vincent Li --- src/initscripts/system/xdpdns | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/initscripts/system/xdpdns b/src/initscripts/system/xdpdns index 474a4e580..f98718171 100755 --- a/src/initscripts/system/xdpdns +++ b/src/initscripts/system/xdpdns @@ -33,6 +33,8 @@ load_dnsblock () { boot_mesg "Native mode not supported, try SKB" xdp-loader load green0 -m skb -P 70 -p /sys/fs/bpf/xdp-dns-denylist -n xdp_dns_denylist /usr/lib/bpf/xdp_dns.bpf.o fi + # allow WUI nobody with permission to update map + chown -R nobody /sys/fs/bpf/xdp-dns-denylist fi }