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:
Stanislav Sinyagin
2015-09-22 09:01:07 +00:00
parent 2184af8ea6
commit 9461ed1335
4 changed files with 108 additions and 21 deletions
+6
View File
@@ -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