PSECFLAGS(3PROC) Process Control Library Functions PSECFLAGS(3PROC) NNAAMMEE PPsseeccffllaaggss, PPsseeccffllaaggss__ffrreeee - get and free process security flags SSYYNNOOPPSSIISS Process Control Library (libproc, -lproc) ##iinncclluuddee <> _i_n_t PPpprriivv(_s_t_r_u_c_t _p_s___p_r_o_c_h_a_n_d_l_e _*_P, _p_r_s_e_c_f_l_a_g_s___t _*_*_p_s_f); _v_o_i_d PPpprriivv__ffrreeee(_s_t_r_u_c_t _p_s___p_r_o_c_h_a_n_d_l_e _*_P, _p_r_s_e_c_f_l_a_g_s___t _*_p_s_f); DDEESSCCRRIIPPTTIIOONN The PPsseeccffllaaggss() function obtains the security flags of the process handle _P. The security flags structure will be dynamically allocated and a pointer to it will be placed in _p_s_f. It must be released with a call to PPsseeccffllaaggss__ffrreeee(). The definition of the pprrsseeccffllaaggss__tt structure is documented in proc(4). The PPsseeccffllaaggss__ffrreeee() function releases the storage in _p_s_f that was allocated as a result of calling PPsseeccffllaaggss(). RREETTUURRNN VVAALLUUEESS Upon successful completion, the PPsseeccffllaaggss() function returns 00 and _p_s_f is updated with a pointer to the allocated privilege set. Otherwise, --11 is returned and _p_s_f is not updated. IINNTTEERRFFAACCEE SSTTAABBIILLIITTYY UUnnccoommmmiitttteedd MMTT--LLEEVVEELL See LLOOCCKKIINNGG in libproc(3LIB). SSEEEE AALLSSOO libproc(3LIB), proc(4), security-flags(5) illumos May 14, 2016 illumos