/illumos-gate/usr/src/head/ |
H A D | priv.h | 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 *); 72 extern boolean_t priv_isequalset(const priv_set_t *, const priv_set_t *); 73 extern boolean_t priv_issubset(const priv_set_t *, const priv_set_t *); 74 extern void priv_intersect(const priv_set_t *, priv_set_t *); 75 extern void priv_union(const priv_set_t *, priv_set_t *); 76 extern void priv_inverse(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 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); 228 extern boolean_t priv_isfullset(const priv_set_t *); 229 extern boolean_t priv_isequalset(const priv_set_t *, const priv_set_t *); 230 extern boolean_t priv_issubset(const priv_set_t *, const priv_set_t *); 233 extern void priv_intersect(const priv_set_t *, priv_set_t *); 234 extern void priv_union(const priv_set_t *, 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 | 380 static priv_set_t * 411 priv_set_t *pset; in priv_set() 480 priv_set_t *nset; in __init_daemon_priv() 572 priv_set_t *nset; in __fini_daemon_priv() 835 static priv_set_t * 844 priv_set_t * 900 priv_isequalset(const priv_set_t *a, const priv_set_t *b) in priv_isequalset() 944 priv_issubset(const priv_set_t *a, const priv_set_t *b) in priv_issubset() 961 priv_intersect(const priv_set_t *a, priv_set_t *b) in priv_intersect() 969 priv_copyset(const priv_set_t *a, priv_set_t *b) in priv_copyset() [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 | 128 priv_set_t *psa; 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() 509 priv_isequalset(const priv_set_t *a, const priv_set_t *b) in priv_isequalset() 530 priv_issubset(const priv_set_t *a, const priv_set_t *b) in priv_issubset() 543 priv_intersect(const priv_set_t *a, priv_set_t *b) in priv_intersect() 551 priv_union(const priv_set_t *a, priv_set_t *b) in priv_union() 559 priv_inverse(priv_set_t *a) in priv_inverse() [all …]
|
H A D | klpd.c | 55 priv_set_t klpd_pset; 452 priv_set_t pset; in klpd_reg() 462 if (copyin(psetbuf, &pset, sizeof (priv_set_t))) in klpd_reg() 854 priv_set_t *iset; in pfexec_call() 855 priv_set_t *lset; in pfexec_call() 919 prp->pfr_ioff > da.rsize - sizeof (priv_set_t) || in pfexec_call() 920 prp->pfr_loff > da.rsize - sizeof (priv_set_t) || in pfexec_call() 1006 priv_set_t *fset, pmem; in get_forced_privs() 1057 if (da.rsize != sizeof (priv_set_t)) in get_forced_privs() 1060 fset = (priv_set_t *)da.rbuf; in get_forced_privs() [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 | 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() 341 wset = (priv_set_t *)&pap->pfa_buf; in callback_user_privs() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/ |
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/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() 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() 559 priv_set_t *target = priv_allocset(); in privupdate_self() [all …]
|
/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/cmd/hal/addons/network-devices/ |
H A D | addon-network-discovery.c | 270 priv_set_t *pPrivSet = NULL; in drop_privileges() 271 priv_set_t *lPrivSet = NULL; in drop_privileges()
|