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