mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
manager: prevent file access outside of config dir
Add live_dangerously flag to manager and use this flag to determine if a configuation file outside of AST_CONFIG_DIR should be read. ASTERISK-30176 Change-Id: I46b26af4047433b49ae5c8a85cb8cda806a07404
This commit is contained in:
committed by
Benjamin Keith Ford
parent
9d74efa30f
commit
2285ffd5eb
@@ -476,6 +476,7 @@ void load_asterisk_conf(void)
|
||||
}
|
||||
if (!ast_opt_remote) {
|
||||
pbx_live_dangerously(live_dangerously);
|
||||
astman_live_dangerously(live_dangerously);
|
||||
}
|
||||
|
||||
option_debug += option_debug_new;
|
||||
|
Reference in New Issue
Block a user