Lines Matching refs:priv_set
84 priv_set_t *priv_set; in nwamd_escalate() local
85 priv_set = priv_str_to_set("zone", ",", NULL); in nwamd_escalate()
87 if (priv_set == NULL) in nwamd_escalate()
94 if (setppriv(PRIV_SET, PRIV_EFFECTIVE, priv_set) == -1) { in nwamd_escalate()
95 priv_freeset(priv_set); in nwamd_escalate()
101 priv_freeset(priv_set); in nwamd_escalate()
110 priv_set_t *priv_set, *allpriv_set; in nwamd_deescalate() local
113 priv_set = priv_str_to_set("basic", ",", NULL); in nwamd_deescalate()
115 if (priv_set == NULL || allpriv_set == NULL) in nwamd_deescalate()
118 (void) priv_addset(priv_set, PRIV_FILE_CHOWN_SELF); in nwamd_deescalate()
119 (void) priv_addset(priv_set, PRIV_FILE_DAC_READ); in nwamd_deescalate()
120 (void) priv_addset(priv_set, PRIV_FILE_DAC_WRITE); in nwamd_deescalate()
121 (void) priv_addset(priv_set, PRIV_NET_RAWACCESS); in nwamd_deescalate()
122 (void) priv_addset(priv_set, PRIV_NET_PRIVADDR); in nwamd_deescalate()
123 (void) priv_addset(priv_set, PRIV_PROC_AUDIT); in nwamd_deescalate()
124 (void) priv_addset(priv_set, PRIV_PROC_OWNER); in nwamd_deescalate()
125 (void) priv_addset(priv_set, PRIV_PROC_SETID); in nwamd_deescalate()
126 (void) priv_addset(priv_set, PRIV_SYS_CONFIG); in nwamd_deescalate()
127 (void) priv_addset(priv_set, PRIV_SYS_IP_CONFIG); in nwamd_deescalate()
128 (void) priv_addset(priv_set, PRIV_SYS_IPC_CONFIG); in nwamd_deescalate()
129 (void) priv_addset(priv_set, PRIV_SYS_MOUNT); in nwamd_deescalate()
130 (void) priv_addset(priv_set, PRIV_SYS_NET_CONFIG); in nwamd_deescalate()
131 (void) priv_addset(priv_set, PRIV_SYS_RES_CONFIG); in nwamd_deescalate()
132 (void) priv_addset(priv_set, PRIV_SYS_RESOURCE); in nwamd_deescalate()
138 priv_intersect(allpriv_set, priv_set); in nwamd_deescalate()
140 if (setppriv(PRIV_SET, PRIV_INHERITABLE, priv_set) == -1) { in nwamd_deescalate()
142 priv_freeset(priv_set); in nwamd_deescalate()
151 priv_freeset(priv_set); in nwamd_deescalate()
158 if (setppriv(PRIV_SET, PRIV_EFFECTIVE, priv_set) == -1) { in nwamd_deescalate()
160 priv_freeset(priv_set); in nwamd_deescalate()
164 priv_freeset(priv_set); in nwamd_deescalate()