Changeset 30694


Ignore:
Timestamp:
2012-02-23T19:50:47+01:00 (6 years ago)
Author:
jow
Message:

[package] firewall: bail out if uci is used in firewall include files

Location:
trunk/package/firewall
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/firewall/Makefile

    r30676 r30694  
    1010 
    1111PKG_VERSION:=2 
    12 PKG_RELEASE:=45 
     12PKG_RELEASE:=46 
    1313 
    1414include $(INCLUDE_DIR)/package.mk 
  • trunk/package/firewall/files/lib/core_init.sh

    r28669 r30694  
    289289        config_get path ${name} path 
    290290 
    291         [ -e $path ] && ( . $path ) 
     291        [ -e $path ] && ( 
     292                config() { 
     293                        fw_log error "You cannot use UCI in firewall includes!" >&2 
     294                        exit 1 
     295                } 
     296                . $path  
     297        ) 
    292298} 
    293299 
Note: See TracChangeset for help on using the changeset viewer.