From fe2d387a8c333db386df1df64c5870b33b436ee9 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 23 Feb 2012 18:50:47 +0000 Subject: firewall: bail out if uci is used in firewall include files SVN-Revision: 30694 --- package/firewall/files/lib/core_init.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'package/firewall/files') diff --git a/package/firewall/files/lib/core_init.sh b/package/firewall/files/lib/core_init.sh index e93de1613f..035647998e 100644 --- a/package/firewall/files/lib/core_init.sh +++ b/package/firewall/files/lib/core_init.sh @@ -288,7 +288,13 @@ fw_load_include() { local path config_get path ${name} path - [ -e $path ] && ( . $path ) + [ -e $path ] && ( + config() { + fw_log error "You cannot use UCI in firewall includes!" >&2 + exit 1 + } + . $path + ) } -- cgit v1.2.3