interface: add config setting to restrict inheritance to template interfaces

This commit is contained in:
Ariadne Conill 2020-09-23 11:34:35 -06:00
parent a3987b46c8
commit 5c5c316ebf
4 changed files with 14 additions and 0 deletions

View file

@ -20,6 +20,7 @@
struct lif_config_file lif_config = {
.allow_addon_scripts = true,
.allow_any_iface_as_template = true,
};
static bool
@ -43,6 +44,7 @@ set_bool_value(const char *key, const char *value, void *opaque)
static struct lif_config_handler handlers[] = {
{"allow_addon_scripts", set_bool_value, &lif_config.allow_addon_scripts},
{"allow_any_iface_as_template", set_bool_value, &lif_config.allow_any_iface_as_template},
};
bool