/titanic_50/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 | 47 extern int klpd_getucred(ucred_t **, void *);
|
H A D | door.h | 53 int door_ucred(ucred_t **);
|
/titanic_50/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 …]
|
/titanic_50/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 | 155 ilbd_cmd_t cmd, ilb_status_t rc, ucred_t *ucredp) in ilbd_audit_server_event() 289 ucred_t *ucredp) in ilbd_destroy_sg() 349 ucred_t *ucredp) in ilbd_create_sg() 554 ilbd_cmd_t cmd, ilb_status_t rc, ucred_t *ucredp) in fill_audit_record() 592 const struct passwd *ps, ucred_t *ucredp) in ilbd_add_server_to_group() 956 const struct passwd *ps, ucred_t *ucredp) in ilbd_rem_server_from_group() 1194 ilbd_srv_status_ind_t cmd, ucred_t *ucredp) in ilbd_Xable_server() 1503 ucred_t *ucredp) in ilbd_disable_server() 1510 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()
|
/titanic_50/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 …]
|
/titanic_50/usr/src/lib/libbsm/common/ |
H A D | adt_ucred.h | 43 extern au_id_t ucred_getauid(const ucred_t *uc); 44 extern au_asid_t ucred_getasid(const ucred_t *uc); 45 extern const au_mask_t *ucred_getamask(const ucred_t *uc); 46 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 | 58 static m_label_t *adt_ucred_label(ucred_t *); 1261 adt_ucred_label(ucred_t *uc) in adt_ucred_label() 1424 ucred_t *ucred = ucred_get(P_MYID); in adt_init() 1551 ucred_t *ucred = ucred_get(P_MYID); in adt_newuser() 1706 adt_set_from_ucred(const adt_session_data_t *session_data, const ucred_t *uc, in adt_set_from_ucred() 1713 ucred_t *ucred = (ucred_t *)uc; in adt_set_from_ucred()
|
/titanic_50/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_door.c | 64 ucred_t *); 78 dlmgmt_checkprivs(datalink_class_t class, ucred_t *cred) in dlmgmt_checkprivs() 142 ucred_t *cred) in dlmgmt_upcall_create() 282 ucred_t *cred) in dlmgmt_upcall_update() 358 ucred_t *cred) in dlmgmt_upcall_destroy() 406 ucred_t *cred) in dlmgmt_getname() 435 ucred_t *cred) in dlmgmt_getlinkid() 468 ucred_t *cred) in dlmgmt_getnext() 511 ucred_t *cred) in dlmgmt_upcall_getattr() 533 ucred_t *cred) in dlmgmt_createid() [all …]
|
/titanic_50/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()
|
/titanic_50/usr/src/lib/libc/port/sys/ |
H A D | getpeerucred.c | 39 getpeerucred(int fd, ucred_t **ucp) in getpeerucred() 41 ucred_t *uc = *ucp; in getpeerucred()
|
/titanic_50/usr/src/lib/libnsl/rpc/ |
H A D | ti_opts.c | 63 extern bool_t __svc_get_door_ucred(const SVCXPRT *, ucred_t *); 121 find_ucred_opt(const SVCXPRT *trans, ucred_t *uc, bool_t checkzone) in find_ucred_opt() 199 ucred_t *uc = alloca(ucred_size()); in __rpc_get_local_uid() 220 ucred_t *uc = alloca(ucred_size()); in __rpc_get_local_cred() 244 svc_getcallerucred(const SVCXPRT *trans, ucred_t **uc) in svc_getcallerucred() 246 ucred_t *ucp = *uc; in svc_getcallerucred()
|
/titanic_50/usr/src/cmd/svc/configd/ |
H A D | configd.h | 604 ucred_t *ti_ucred; /* for credential lookups */ 632 int create_connection(ucred_t *cred, repository_door_request_t *rp, 637 ucred_t *get_ucred(void); 638 int ucred_is_privileged(ucred_t *);
|
H A D | configd.c | 222 ucred_t * 226 ucred_t **ret = &ti->ti_ucred; in get_ucred() 239 ucred_is_privileged(ucred_t *uc) in ucred_is_privileged() 337 create_connection(ucred_t *uc, repository_door_request_t *rp, in create_connection()
|
/titanic_50/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()
|
/titanic_50/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()
|
/titanic_50/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | bsd-getpeereid.c | 56 ucred_t *ucred = NULL; in getpeereid()
|
/titanic_50/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 | 151 extern void nwam_record_audit_event(const ucred_t *, au_event_t, char *, char *,
|
/titanic_50/usr/src/cmd/vntsd/ |
H A D | auth.c | 87 ucred_t *ucredp = NULL; in socket_peer_euid()
|
/titanic_50/usr/src/cmd/lp/lib/lp/ |
H A D | tx.c | 108 ucred_t *uc = NULL; in get_peer_label()
|
/titanic_50/usr/src/cmd/ldapcachemgr/ |
H A D | cachemgr.c | 74 static int is_root(int free_uc, char *dc_str, ucred_t **uc); 75 int is_root_or_all_privs(char *dc_str, ucred_t **ucp); 693 ucred_t *uc = NULL; 1359 is_root(int free_uc, char *dc_str, ucred_t **ucp) 1603 ucred_t *uc = NULL; 1818 is_root_or_all_privs(char *dc_str, ucred_t **ucp)
|