/illumos-gate/usr/src/head/ |
H A D | priv.h | 47 extern int setppriv(priv_op_t, priv_ptype_t, const priv_set_t *); 48 extern int getppriv(priv_ptype_t, priv_set_t *); 55 extern priv_set_t *priv_str_to_set(const char *, const char *, const char **); 56 extern char *priv_set_to_str(const priv_set_t *, char, int); 64 extern priv_set_t *priv_allocset(void); 65 extern void priv_freeset(priv_set_t *); 67 extern void priv_emptyset(priv_set_t *); 68 extern void priv_basicset(priv_set_t *); 69 extern void priv_fillset(priv_set_t *); 70 extern boolean_t priv_isemptyset(const priv_set_t *); [all...] |
H A D | klpd.h | 39 extern void *klpd_create(boolean_t (*)(void *, const priv_set_t *, void *), 41 extern int klpd_register_id(const priv_set_t *, void *, idtype_t, id_t); 42 extern int klpd_register(const priv_set_t *, void *);
|
H A D | ucred.h | 57 extern const priv_set_t *ucred_getprivset(const ucred_t *, priv_ptype_t);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | priv.h | 39 typedef struct priv_set priv_set_t; typedef in typeref:struct:priv_set 215 extern const priv_set_t *priv_getset(const struct cred *, int); 222 extern void priv_emptyset(priv_set_t *); 223 extern void priv_fillset(priv_set_t *); 224 extern void priv_addset(priv_set_t *, int); 225 extern void priv_delset(priv_set_t *, int); 226 extern boolean_t priv_ismember(const priv_set_t *, int); 227 extern boolean_t priv_isemptyset(const priv_set_t *); 228 extern boolean_t priv_isfullset(const priv_set_t *); 229 extern boolean_t priv_isequalset(const priv_set_t *, cons [all...] |
H A D | devpolicy.h | 60 priv_set_t dps_rdp; /* privileges required for reading */ 61 priv_set_t dps_wrp; /* privileges required for writing */ 75 priv_set_t dp_rdp; /* Privileges required for reading */ 76 priv_set_t dp_wrp; /* Privileges required for writing */ 106 #define DEVPLCYSYS_RDP(dp, ip) ((priv_set_t *)(&(dp)->dps_sets[0])) 108 ((priv_set_t *)(&(dp)->dps_sets[(ip)->priv_setsize]))
|
H A D | klpd.h | 59 int klpd_reg(int, idtype_t, id_t, priv_set_t *); 63 int klpd_call(const cred_t *, const priv_set_t *, va_list); 69 int get_forced_privs(const cred_t *, const char *, priv_set_t *); 70 int check_user_privs(const cred_t *, const priv_set_t *); 81 #define KLH_PRIVSET(kh) ((priv_set_t *)(((kh)->klh_privoff == 0 ? NULL : \ 102 #define PFEXEC_FORCED_PRIVS 0x2 /* priv_set_t */ 138 ((pfr)->pfr_ioff ? (priv_set_t *)((char *)(pfr) + (pfr)->pfr_ioff) \ 139 : (priv_set_t *)0) 141 ((pfr)->pfr_loff ? (priv_set_t *)((char *)(pfr) + (pfr)->pfr_loff) \ 142 : (priv_set_t *) [all...] |
H A D | priv_impl.h | 41 * priv_set_t is a structure holding a set of privileges 49 priv_set_t crprivs[PRIV_NSET]; /* Priv sets */ 57 extern priv_set_t *priv_basic; 58 extern priv_set_t priv_unsafe; 59 extern priv_set_t priv_fullset;
|
/illumos-gate/usr/src/lib/libproject/common/ |
H A D | llib-lproject | 36 typedef struct priv_set priv_set_t; 38 priv_set_t *setproject_initpriv(void);
|
/illumos-gate/usr/src/lib/libc/inc/ |
H A D | priv_private.h | 95 priv_set_t *pd_basicset; 96 priv_set_t *pd_zoneset; 108 extern boolean_t __priv_isemptyset(priv_data_t *, const priv_set_t *); 109 extern boolean_t __priv_isfullset(priv_data_t *, const priv_set_t *); 110 extern boolean_t __priv_issubset(priv_data_t *, const priv_set_t *, 111 const priv_set_t *); 116 extern priv_set_t *priv_basic(void);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | privlib.c | 201 tmp->pd_basicset = (priv_set_t *)&st->set[0]; 309 static priv_set_t *__priv_allocset(priv_data_t *); 380 static priv_set_t * 383 priv_set_t *pset = priv_allocset(); 411 priv_set_t *pset; 449 priv_set_t *curset; 480 priv_set_t *nset; 481 priv_set_t *perm = NULL; 572 priv_set_t *nset; 598 static priv_set_t *bracketpri [all...] |
H A D | priv_str_xlate.c | 51 priv_set_t * 73 priv_set_t * 82 priv_set_t *pset = NULL; 83 priv_set_t *zone; 84 priv_set_t *basic; 173 const priv_set_t *pset, 181 priv_set_t *zone; 338 priv_set_to_str(const priv_set_t *pset, char separator, int flag)
|
H A D | klpdlib.c | 47 boolean_t (*kd_callback)(void *, const priv_set_t *, void *); 69 priv_set_t *pset; 108 klpd_create(boolean_t (*callback)(void *, const priv_set_t *, void *), 132 klpd_register_id(const priv_set_t *set, void *handle, idtype_t type, id_t id) 153 klpd_register(const priv_set_t *set, void *handle)
|
H A D | setpriority.c | 188 priv_set_t *pset = NULL;
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | priv.c | 74 priv_set_t priv_fullset; /* set of all privileges */ 75 priv_set_t priv_unsafe; /* unsafe to exec set-uid root if these are not in L */ 128 priv_set_t *psa; 135 psa = (priv_set_t *)pr->pr_sets; 174 priv_set_t eset; 310 const priv_set_t * 464 priv_emptyset(priv_set_t *set) 470 priv_fillset(priv_set_t *set) 480 priv_addset(priv_set_t *set, int priv) 487 priv_delset(priv_set_t *se [all...] |
H A D | klpd.c | 55 priv_set_t klpd_pset; 188 * - priv_set_t 193 klpd_marshall(klpd_reg_t *p, const priv_set_t *rq, va_list ap) 198 size_t len = sizeof (priv_set_t) + sizeof (klpd_head_t); 227 khp->klh_argoff = sizeof (klpd_head_t) + sizeof (priv_set_t); 268 khp->klh_argoff = sizeof (klpd_head_t) + sizeof (priv_set_t); 287 klpd_do_call(klpd_reg_t *p, const priv_set_t *req, va_list ap) 340 klpd_call(const cred_t *cr, const priv_set_t *req, va_list ap) 447 klpd_reg(int did, idtype_t type, id_t id, priv_set_t *psetbuf) 452 priv_set_t pse [all...] |
/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | privlib.c | 45 priv_set_t *priv_set; 96 priv_set_t *priv_set; 146 priv_set_t *priv_set;
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | ppriv.c | 41 setppriv(priv_op_t op, priv_ptype_t type, const priv_set_t *pset) 55 getppriv(priv_ptype_t type, priv_set_t *pset)
|
/illumos-gate/usr/src/cmd/gss/gssd/ |
H A D | gssd_getuid.c | 43 static priv_set_t *lowprivs = NULL; 44 static priv_set_t *highprivs = NULL;
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | ppriv.c | 52 * setppriv (priv_op_t, priv_ptype_t, priv_set_t) 55 setppriv(priv_op_t op, priv_ptype_t type, priv_set_t *in_pset) 57 priv_set_t pset, *target; 65 if (copyin(in_pset, &pset, sizeof (priv_set_t))) 169 priv_set_t diff = CR_OPPRIV(cr); 205 * getppriv (priv_ptype_t, priv_set_t *) 208 getppriv(priv_ptype_t type, priv_set_t *pset) 213 if (copyout(priv_getset(CRED(), type), pset, sizeof (priv_set_t)) != 0) 381 if (bufsize < sizeof (priv_set_t)) 385 if (bufsize < sizeof (priv_set_t)) [all...] |
/illumos-gate/usr/src/cmd/pfexecd/ |
H A D | pfexecd.c | 60 static priv_set_t *get_privset(const char *, boolean_t *, char *); 61 static priv_set_t *get_granted_privs(uid_t); 235 static priv_set_t * 238 priv_set_t *res; 252 priv_set_t *res = vres; 261 priv_set_t *tmp = priv_str_to_set(privs, ",", NULL); 275 static priv_set_t * 278 priv_set_t *res; 301 priv_set_t *fset; 337 priv_set_t *gse [all...] |
/illumos-gate/usr/src/cmd/ptools/ppriv/ |
H A D | ppriv.c | 273 const priv_set_t *, char, int); 274 priv_set_t *pset = (priv_set_t *)pc; 366 static priv_set_t **rem, **add, **assign; 395 rem = calloc(pri->priv_nsets, sizeof (priv_set_t *)); 396 add = calloc(pri->priv_nsets, sizeof (priv_set_t *)); 397 assign = calloc(pri->priv_nsets, sizeof (priv_set_t *)); 408 priv_set_t ***toupd; 409 priv_set_t *upd; 481 priv_set_t *targe [all...] |
/illumos-gate/usr/src/cmd/newtask/ |
H A D | newtask.c | 71 static priv_set_t *nset; 76 extern priv_set_t *setproject_initpriv(void); 520 priv_set_t *eset, *pset; 555 eset = (priv_set_t *)&new_prpriv->pr_sets[new_prpriv->pr_setsize * ind]; 557 pset = (priv_set_t *)&new_prpriv->pr_sets[new_prpriv->pr_setsize * ind];
|
/illumos-gate/usr/src/cmd/pfexec/ |
H A D | pfexec.c | 101 priv_set_t *wanted;
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | util_helper.c | 54 priv_set_t *pPrivSet;
|
/illumos-gate/usr/src/lib/librestart/common/ |
H A D | librestart.h | 279 priv_set_t *lpriv_set, *priv_set;
|