/illumos-gate/usr/src/head/ |
H A D | ucred.h | 39 typedef struct ucred_s ucred_t; typedef 45 extern ucred_t *ucred_get(pid_t pid); 47 extern void ucred_free(ucred_t *); 49 extern uid_t ucred_geteuid(const ucred_t *); 50 extern uid_t ucred_getruid(const ucred_t *); 51 extern uid_t ucred_getsuid(const ucred_t *); 52 extern gid_t ucred_getegid(const ucred_t *); 53 extern gid_t ucred_getrgid(const ucred_t *); 54 extern gid_t ucred_getsgid(const ucred_t *); 55 extern int ucred_getgroups(const ucred_t *, const gid_t **); [all …]
|
H A D | klpd.h | 45 extern int klpd_getucred(ucred_t **, void *);
|
H A D | door.h | 53 int door_ucred(ucred_t **);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | ucred.c | 71 ucred_t * 74 ucred_t *r; in _ucred_alloc() 86 ucred_free(ucred_t *uc) in ucred_free() 92 ucred_t * 95 ucred_t *uc; in ucred_get() 111 ucred_geteuid(const ucred_t *uc) in ucred_geteuid() 125 ucred_getruid(const ucred_t *uc) in ucred_getruid() 139 ucred_getsuid(const ucred_t *uc) in ucred_getsuid() 153 ucred_getegid(const ucred_t *uc) in ucred_getegid() 167 ucred_getrgid(const ucred_t *uc) in ucred_getrgid() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ |
H A D | ilbd.h | 304 ucred_t *cli_peer_ucredp; /* needed for auditing */ 317 const struct passwd *, ucred_t *); 319 const struct passwd *, ucred_t *); 321 const struct passwd *, ucred_t *); 324 ucred_t *); 328 ucred_t *); 330 ucred_t *); 348 ucred_t *); 352 ucred_t *); 353 ilb_status_t ilbd_enable_rule(ilbd_name_t, const struct passwd *, ucred_t *); [all …]
|
H A D | ilbd_sg.c | 156 ilbd_cmd_t cmd, ilb_status_t rc, ucred_t *ucredp) in ilbd_audit_server_event() 290 ucred_t *ucredp) in ilbd_destroy_sg() 350 ucred_t *ucredp) in ilbd_create_sg() 555 ilbd_cmd_t cmd, ilb_status_t rc, ucred_t *ucredp) in fill_audit_record() 593 const struct passwd *ps, ucred_t *ucredp) in ilbd_add_server_to_group() 957 const struct passwd *ps, ucred_t *ucredp) in ilbd_rem_server_from_group() 1195 ilbd_srv_status_ind_t cmd, ucred_t *ucredp) in ilbd_Xable_server() 1504 ucred_t *ucredp) in ilbd_disable_server() 1511 ucred_t *ucredp) in ilbd_enable_server()
|
H A D | ilbd_rules.c | 505 ucred_t *ucredp) in ilbd_audit_rule_event() 752 boolean_t is_rollback, ucred_t *ucredp) in i_ilbd_action_switch() 826 ilbd_cmd_t cmd, ucred_t *ucredp) in i_ilbd_rule_action() 926 ucred_t *ucredp) in ilbd_destroy_rule() 933 ucred_t *ucredp) in ilbd_enable_rule() 941 ucred_t *ucredp) in ilbd_disable_rule() 1105 const struct passwd *ps, ucred_t *ucredp) in ilbd_create_rule()
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | door_if.c | 74 nwam_error_t (*ndre_fn)(nwamd_door_arg_t *, ucred_t *, struct passwd *); 78 ucred_t *, struct passwd *); 80 ucred_t *, struct passwd *); 82 ucred_t *, struct passwd *); 84 ucred_t *, struct passwd *); 86 ucred_t *, struct passwd *); 88 ucred_t *, struct passwd *); 90 ucred_t *, struct passwd *); 92 ucred_t *, struct passwd *); 94 ucred_t *, struct passwd *); [all …]
|
/illumos-gate/usr/src/lib/varpd/libvarpd/common/ |
H A D | libvarpd_door.c | 32 typedef int (libvarpd_door_f)(varpd_impl_t *, varpd_client_arg_t *, ucred_t *); 35 libvarpd_door_privileged(ucred_t *credp) in libvarpd_door_privileged() 49 ucred_t *credp) in libvarpd_door_f_create() 67 ucred_t *credp) in libvarpd_door_f_activate() 81 ucred_t *credp) in libvarpd_door_f_destroy() 96 ucred_t *credp) in libvarpd_door_f_nprops() 111 ucred_t *credp) in libvarpd_door_f_propinfo() 171 ucred_t *credp) in libvarpd_door_f_getprop() 202 ucred_t *credp) in libvarpd_door_f_setprop() 230 ucred_t *credp) in libvarpd_door_f_lookup() [all …]
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | adt_ucred.h | 41 extern au_id_t ucred_getauid(const ucred_t *uc); 42 extern au_asid_t ucred_getasid(const ucred_t *uc); 43 extern const au_mask_t *ucred_getamask(const ucred_t *uc); 44 extern const au_tid64_addr_t *ucred_getatid(const ucred_t *uc);
|
H A D | adt.h | 99 const ucred_t *,
|
H A D | adt.c | 60 static m_label_t *adt_ucred_label(ucred_t *); 1303 adt_ucred_label(ucred_t *uc) in adt_ucred_label() 1466 ucred_t *ucred = ucred_get(P_MYID); in adt_init() 1593 ucred_t *ucred = ucred_get(P_MYID); in adt_newuser() 1748 adt_set_from_ucred(const adt_session_data_t *session_data, const ucred_t *uc, in adt_set_from_ucred() 1755 ucred_t *ucred = (ucred_t *)uc; in adt_set_from_ucred()
|
/illumos-gate/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_door.c | 66 ucred_t *); 80 dlmgmt_checkprivs(datalink_class_t class, ucred_t *cred) in dlmgmt_checkprivs() 144 ucred_t *cred) in dlmgmt_upcall_create() 284 ucred_t *cred) in dlmgmt_upcall_update() 360 ucred_t *cred) in dlmgmt_upcall_destroy() 408 ucred_t *cred) in dlmgmt_getname() 438 ucred_t *cred) in dlmgmt_getlinkid() 472 ucred_t *cred) in dlmgmt_getnext() 516 ucred_t *cred) in dlmgmt_upcall_getattr() 538 ucred_t *cred) in dlmgmt_createid() [all …]
|
/illumos-gate/usr/src/cmd/hotplugd/ |
H A D | hotplugd_door.c | 71 static int check_auth(ucred_t *, const char *); 79 static int audit_session(ucred_t *, adt_session_data_t **); 80 static void audit_changestate(ucred_t *, char *, char *, char *, int, int, 82 static void audit_setprivate(ucred_t *, char *, char *, char *, char *, 267 check_auth(ucred_t *ucred, const char *auth) in check_auth() 368 ucred_t *uc = NULL; in cmd_changestate() 465 ucred_t *uc = NULL; in cmd_private() 622 audit_session(ucred_t *ucred, adt_session_data_t **sessionp) in audit_session() 647 audit_changestate(ucred_t *ucred, char *auth, char *path, char *connection, in audit_changestate() 690 audit_setprivate(ucred_t *ucred, char *auth, char *path, char *connection, in audit_setprivate()
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | getpeerucred.c | 37 getpeerucred(int fd, ucred_t **ucp) in getpeerucred() 39 ucred_t *uc = *ucp; in getpeerucred()
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | ti_opts.c | 61 extern bool_t __svc_get_door_ucred(const SVCXPRT *, ucred_t *); 119 find_ucred_opt(const SVCXPRT *trans, ucred_t *uc, bool_t checkzone) in find_ucred_opt() 197 ucred_t *uc = alloca(ucred_size()); in __rpc_get_local_uid() 218 ucred_t *uc = alloca(ucred_size()); in __rpc_get_local_cred() 242 svc_getcallerucred(const SVCXPRT *trans, ucred_t **uc) in svc_getcallerucred() 244 ucred_t *ucp = *uc; in svc_getcallerucred()
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | configd.h | 603 ucred_t *ti_ucred; /* for credential lookups */ 631 int create_connection(ucred_t *cred, repository_door_request_t *rp, 636 ucred_t *get_ucred(void); 637 int ucred_is_privileged(ucred_t *);
|
H A D | configd.c | 223 ucred_t * 227 ucred_t **ret = &ti->ti_ucred; in get_ucred() 240 ucred_is_privileged(ucred_t *uc) in ucred_is_privileged() 338 create_connection(ucred_t *uc, repository_door_request_t *rp, in create_connection()
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | door_calls.c | 64 extern int __door_ucred(ucred_t *); 293 door_ucred(ucred_t **uc) in door_ucred() 295 ucred_t *ucp = *uc; in door_ucred() 321 ucred_t *ucp = alloca(ucred_size()); in door_cred()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | pr_getsockname.c | 176 pr_getpeerucred(struct ps_prochandle *Pr, int fd, ucred_t **ucp) in pr_getpeerucred() 182 ucred_t *uc = *ucp; in pr_getpeerucred()
|
/illumos-gate/usr/src/lib/libnwam/common/ |
H A D | libnwam_audit.c | 37 nwam_record_audit_event(const ucred_t *ucr, au_event_t eid, in nwam_record_audit_event()
|
H A D | libnwam_priv.h | 153 extern void nwam_record_audit_event(const ucred_t *, au_event_t, char *, char *,
|
/illumos-gate/usr/src/cmd/ldapcachemgr/ |
H A D | cachemgr.c | 75 static int is_root(int free_uc, char *dc_str, ucred_t **uc); 76 int is_root_or_all_privs(char *dc_str, ucred_t **ucp); 692 ucred_t *uc = NULL; 1358 is_root(int free_uc, char *dc_str, ucred_t **ucp) 1601 ucred_t *uc = NULL; 1816 is_root_or_all_privs(char *dc_str, ucred_t **ucp)
|
/illumos-gate/usr/src/cmd/vntsd/ |
H A D | auth.c | 87 ucred_t *ucredp = NULL; in socket_peer_euid()
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | tx.c | 108 ucred_t *uc = NULL; in get_peer_label()
|