diff options
author | Richard Mudgett <rmudgett@digium.com> | 2016-07-27 17:17:53 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-07-28 15:11:33 -0500 |
commit | 68ebf86e2fbd0a8e60d32c17f8ce64d4db51b7a6 (patch) | |
tree | 0ff01439ca588e180f2a3419ca7fde36b93de16f /include/asterisk/pbx.h | |
parent | 4cbb735c288d05ba113912b1af030231bd5f9872 (diff) |
pbx.c: Allow dangerous functions when adding a hint to dialplan.
We can allow dangerous functions when adding a hint since altering
dialplan is itself a privileged activity. Otherwise, we could never
execute dangerous functions.
ASTERISK-25996 #close
Reported by: Andrew Nagy
Change-Id: I4929ff100ad1200a0198262d069a34f2296e77ba
Diffstat (limited to 'include/asterisk/pbx.h')
-rw-r--r-- | include/asterisk/pbx.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h index d44a245e3..6da447034 100644 --- a/include/asterisk/pbx.h +++ b/include/asterisk/pbx.h @@ -1618,6 +1618,18 @@ void pbx_live_dangerously(int new_live_dangerously); */ int ast_thread_inhibit_escalations(void); +/*! + * \brief Swap the current thread escalation inhibit setting. + * \since 11.24.0 + * + * \param inhibit New setting. Non-zero to inhibit. + * + * \retval 1 if dangerous function execution was inhibited. + * \retval 0 if dangerous function execution was allowed. + * \retval -1 on error. + */ +int ast_thread_inhibit_escalations_swap(int inhibit); + #if defined(__cplusplus) || defined(c_plusplus) } #endif |