mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
FS-8195 Compatibility with Solaris 11 process privileges
Now the daemon manages its privileges correctly, so that -rp, -u, -g and -lp can be supported, also in a Solaris zone. Also fixed a problem that switch_log_printf() was used before the logger was initialized, so the messages were sent to nowhere.
This commit is contained in:
@@ -2243,6 +2243,12 @@ SWITCH_DECLARE(switch_core_flag_t) switch_core_flags(void);
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_management_exec(char *relative_oid, switch_management_action_t action, char *data, switch_size_t datalen);
|
||||
|
||||
/*!
|
||||
\brief Switch on the privilege awareness for the process and request required privileges
|
||||
\return 0 on success
|
||||
*/
|
||||
|
||||
SWITCH_DECLARE(int32_t) switch_core_set_process_privileges(void);
|
||||
|
||||
/*!
|
||||
\brief Set the maximum priority the process can obtain
|
||||
|
||||
Reference in New Issue
Block a user