/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 | 37 extern void *klpd_create(boolean_t (*)(void *, const priv_set_t *, void *), 39 extern int klpd_register_id(const priv_set_t *, void *, idtype_t, id_t); 40 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 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 *, const priv_set_t *); [all …]
|
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 : \ 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 *)0)
|
H A D | devpolicy.h | 58 priv_set_t dps_rdp; /* privileges required for reading */ 59 priv_set_t dps_wrp; /* privileges required for writing */ 73 priv_set_t dp_rdp; /* Privileges required for reading */ 74 priv_set_t dp_wrp; /* Privileges required for writing */ 104 #define DEVPLCYSYS_RDP(dp, ip) ((priv_set_t *)(&(dp)->dps_sets[0])) 106 ((priv_set_t *)(&(dp)->dps_sets[(ip)->priv_setsize]))
|
H A D | priv_impl.h | 47 priv_set_t crprivs[PRIV_NSET]; /* Priv sets */ 55 extern priv_set_t *priv_basic; 56 extern priv_set_t priv_unsafe; 57 extern priv_set_t priv_fullset;
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | privlib.c | 201 tmp->pd_basicset = (priv_set_t *)&st->set[0]; in __priv_parse_info() 309 static priv_set_t *__priv_allocset(priv_data_t *); 380 static priv_set_t * 383 priv_set_t *pset = priv_allocset(); in priv_vlist() 411 priv_set_t *pset; in priv_set() 449 priv_set_t *curset; in priv_ineffect() 480 priv_set_t *nset; in __init_daemon_priv() 481 priv_set_t *perm = NULL; in __init_daemon_priv() 572 priv_set_t *nset; in __fini_daemon_priv() 598 static priv_set_t *bracketpriv; [all …]
|
H A D | priv_str_xlate.c | 51 priv_set_t * 73 priv_set_t * 82 priv_set_t *pset = NULL; in priv_str_to_set() 83 priv_set_t *zone; in priv_str_to_set() 84 priv_set_t *basic; in priv_str_to_set() 173 const priv_set_t *pset, in __priv_set_to_str() 181 priv_set_t *zone; in __priv_set_to_str() 338 priv_set_to_str(const priv_set_t *pset, char separator, int flag) in priv_set_to_str()
|
H A D | klpdlib.c | 45 boolean_t (*kd_callback)(void *, const priv_set_t *, void *); 66 priv_set_t *pset; in klpd_door_callback() 105 klpd_create(boolean_t (*callback)(void *, const priv_set_t *, void *), in klpd_create() argument 129 klpd_register_id(const priv_set_t *set, void *handle, idtype_t type, id_t id) in klpd_register_id() 150 klpd_register(const priv_set_t *set, void *handle) in klpd_register()
|
/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; in cred2prpriv() 135 psa = (priv_set_t *)pr->pr_sets; in cred2prpriv() 174 priv_set_t eset; in priv_pr_spriv() 309 const priv_set_t * 463 priv_emptyset(priv_set_t *set) in priv_emptyset() 469 priv_fillset(priv_set_t *set) in priv_fillset() 479 priv_addset(priv_set_t *set, int priv) in priv_addset() 486 priv_delset(priv_set_t *set, int priv) in priv_delset() [all …]
|
H A D | klpd.c | 55 priv_set_t klpd_pset; 193 klpd_marshall(klpd_reg_t *p, const priv_set_t *rq, va_list ap) in klpd_marshall() 198 size_t len = sizeof (priv_set_t) + sizeof (klpd_head_t); in klpd_marshall() 227 khp->klh_argoff = sizeof (klpd_head_t) + sizeof (priv_set_t); in klpd_marshall() 268 khp->klh_argoff = sizeof (klpd_head_t) + sizeof (priv_set_t); in klpd_marshall() 287 klpd_do_call(klpd_reg_t *p, const priv_set_t *req, va_list ap) in klpd_do_call() 340 klpd_call(const cred_t *cr, const priv_set_t *req, va_list ap) in klpd_call() 447 klpd_reg(int did, idtype_t type, id_t id, priv_set_t *psetbuf) in klpd_reg() 452 priv_set_t pset; in klpd_reg() 462 if (copyin(psetbuf, &pset, sizeof (priv_set_t))) in klpd_reg() [all …]
|
/illumos-gate/usr/src/lib/libc/inc/ |
H A D | priv_private.h | 93 priv_set_t *pd_basicset; 94 priv_set_t *pd_zoneset; 106 extern boolean_t __priv_isemptyset(priv_data_t *, const priv_set_t *); 107 extern boolean_t __priv_isfullset(priv_data_t *, const priv_set_t *); 108 extern boolean_t __priv_issubset(priv_data_t *, const priv_set_t *, 109 const priv_set_t *); 114 extern priv_set_t *priv_basic(void);
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | ppriv.c | 55 setppriv(priv_op_t op, priv_ptype_t type, priv_set_t *in_pset) in setppriv() 57 priv_set_t pset, *target; in setppriv() 65 if (copyin(in_pset, &pset, sizeof (priv_set_t))) in setppriv() 169 priv_set_t diff = CR_OPPRIV(cr); in setppriv() 208 getppriv(priv_ptype_t type, priv_set_t *pset) in getppriv() 213 if (copyout(priv_getset(CRED(), type), pset, sizeof (priv_set_t)) != 0) in getppriv() 381 if (bufsize < sizeof (priv_set_t)) in privsys() 385 if (bufsize < sizeof (priv_set_t)) in privsys() 399 if (bufsize < sizeof (priv_set_t)) in privsys()
|
/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); 236 static priv_set_t * 239 priv_set_t *res; in get_privset() 253 priv_set_t *res = vres; in ggp_callback() 262 priv_set_t *tmp = priv_str_to_set(privs, ",", NULL); in ggp_callback() 276 static priv_set_t * 279 priv_set_t *res; in get_granted_privs() 302 priv_set_t *fset; in callback_forced_privs() 338 priv_set_t *gset, *wset; in callback_user_privs() [all …]
|
/illumos-gate/usr/src/cmd/ptools/ppriv/ |
H A D | ppriv.c | 273 const priv_set_t *, char, int); in look() 274 priv_set_t *pset = (priv_set_t *)pc; in look() 366 static priv_set_t **rem, **add, **assign; 395 rem = calloc(pri->priv_nsets, sizeof (priv_set_t *)); in loadprivinfo() 396 add = calloc(pri->priv_nsets, sizeof (priv_set_t *)); in loadprivinfo() 397 assign = calloc(pri->priv_nsets, sizeof (priv_set_t *)); in loadprivinfo() 408 priv_set_t ***toupd; in parsespec() 409 priv_set_t *upd; in parsespec() 481 priv_set_t *target = in privupdate() 482 (priv_set_t *)&pr->pr_sets[pr->pr_setsize * i]; in privupdate() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | privileges.c | 44 static priv_set_t *bhyve_priv_init; 45 static priv_set_t *bhyve_priv_min; 46 static priv_set_t *bhyve_priv_max; 53 illumos_priv_printset(const char *tag, priv_set_t *set) in illumos_priv_printset() 76 illumos_priv_add_set(priv_set_t *set, const char *priv, const char *src) in illumos_priv_add_set()
|
/illumos-gate/usr/src/cmd/pcieadm/ |
H A D | pcieadm.h | 47 priv_set_t *pia_priv_init; 48 priv_set_t *pia_priv_min; 49 priv_set_t *pia_priv_eff;
|
/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | privlib.c | 43 priv_set_t *priv_set; in set_effective_priv() 94 priv_set_t *priv_set; in set_inheritable_priv() 144 priv_set_t *priv_set; in set_permitted_priv()
|
/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/lib/libc/port/sys/ |
H A D | ppriv.c | 39 setppriv(priv_op_t op, priv_ptype_t type, const priv_set_t *pset) in setppriv() 53 getppriv(priv_ptype_t type, priv_set_t *pset) in getppriv()
|
/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; in set_ids() 555 eset = (priv_set_t *)&new_prpriv->pr_sets[new_prpriv->pr_setsize * ind]; in set_ids() 557 pset = (priv_set_t *)&new_prpriv->pr_sets[new_prpriv->pr_setsize * ind]; in set_ids()
|
/illumos-gate/usr/src/cmd/plimit/ |
H A D | plimit.c | 476 priv_set_t *eset, *pset; in set_one_limit() 515 eset = (priv_set_t *) in set_one_limit() 518 pset = (priv_set_t *) in set_one_limit()
|
/illumos-gate/usr/src/cmd/hal/probing/xkb/ |
H A D | probe-xkb.c | 45 priv_set_t *pPrivSet = NULL; in drop_privileges() 46 priv_set_t *lPrivSet = NULL; in drop_privileges()
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit_kernel.h | 209 priv_set_t tad_sprivs; /* saved (success) used privs */ 210 priv_set_t tad_fprivs; /* saved (failed) used privs */
|