/titanic_41/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | bsd-getpeereid.c | 42 struct ucred cred; in getpeereid() 56 ucred_t *ucred = NULL; in getpeereid() local 58 if (getpeerucred(s, &ucred) == -1) in getpeereid() 60 if ((*euid = ucred_geteuid(ucred)) == (uid_t)-1) in getpeereid() 62 if ((*gid = ucred_getrgid(ucred)) == (gid_t)-1) in getpeereid() 65 ucred_free(ucred); in getpeereid()
|
/titanic_41/usr/src/cmd/rexd/ |
H A D | rpc.rexd.c | 825 rex_startup(rst, ucred, message, calleraddr) in rex_startup() argument 827 struct authunix_parms *ucred; 858 if (ValidUser(ucred->aup_machname, 859 (uid_t)ucred->aup_uid, 860 (gid_t)ucred->aup_gid, 1175 ucred->aup_machname, 1177 ucred->aup_uid, 1178 ucred->aup_gid, 1186 if (setgid(ucred->aup_gid) == -1) { 1191 if (setgroups(ucred->aup_len, (gid_t *)ucred->aup_gids) == -1) { [all …]
|
/titanic_41/usr/src/cmd/fs.d/smbclnt/smbiod/ |
H A D | smbiod.c | 192 ucred_t *ucred; in iod_dispatch() local 201 ucred = NULL; in iod_dispatch() 202 if (door_ucred(&ucred) != 0) { in iod_dispatch() 206 cl_uid = ucred_getruid(ucred); in iod_dispatch() 207 ucred_free(ucred); in iod_dispatch() 208 ucred = NULL; in iod_dispatch()
|
/titanic_41/usr/src/lib/libbsm/common/ |
H A D | adt.c | 1424 ucred_t *ucred = ucred_get(P_MYID); in adt_init() local 1435 if (ucred == NULL) { in adt_init() 1440 mask = ucred_getamask(ucred); in adt_init() 1444 ucred_free(ucred); in adt_init() 1447 tid = ucred_getatid(ucred); in adt_init() 1452 ucred_free(ucred); in adt_init() 1455 state->as_info.ai_asid = ucred_getasid(ucred); in adt_init() 1456 state->as_info.ai_auid = ucred_getauid(ucred); in adt_init() 1457 state->as_label = adt_ucred_label(ucred); in adt_init() 1458 ucred_free(ucred); in adt_init() [all …]
|
/titanic_41/usr/src/cmd/ssh/sshd/ |
H A D | bsmaudit.c | 122 ucred_t *ucred = NULL; in audit_sshd_login() local 136 if ((ucred = ucred_get(pid)) == NULL) { in audit_sshd_login() 142 if (adt_set_from_ucred(*ah, ucred, ADT_NEW)) { in audit_sshd_login() 161 ucred_free(ucred); in audit_sshd_login() 166 if (ucred != NULL) in audit_sshd_login() 167 ucred_free(ucred); in audit_sshd_login()
|
/titanic_41/usr/src/uts/common/rpc/sec/ |
H A D | sec_svc.c | 153 rpc_gss_ucred_t *ucred; in sec_svc_getcred() local 182 stat = rpc_gss_getcred(req, &rcred, &ucred, &cookie); in sec_svc_getcred() 184 if (ucred != NULL) { in sec_svc_getcred() 185 if (crsetugid(cr, ucred->uid, ucred->gid) != 0 || in sec_svc_getcred() 186 crsetgroups(cr, ucred->gidlen, ucred->gidlist) != 0) in sec_svc_getcred()
|
H A D | svcauthdes.c | 500 struct bsdcred *ucred; in authdes_cache_new() local 512 if (!(ucred = kmem_alloc(sizeof (struct bsdcred) + in authdes_cache_new() 520 ucred->valid = 0; in authdes_cache_new() 521 new->localcred = (caddr_t)ucred; in authdes_cache_new()
|
/titanic_41/usr/src/cmd/hotplugd/ |
H A D | hotplugd_door.c | 269 check_auth(ucred_t *ucred, const char *auth) in check_auth() argument 275 euid = ucred_geteuid(ucred); in check_auth() 624 audit_session(ucred_t *ucred, adt_session_data_t **sessionp) in audit_session() argument 633 if (adt_set_from_ucred(session, ucred, ADT_NEW) != 0) { in audit_session() 649 audit_changestate(ucred_t *ucred, char *auth, char *path, char *connection, in audit_changestate() argument 656 if (audit_session(ucred, &session) != 0) in audit_changestate() 692 audit_setprivate(ucred_t *ucred, char *auth, char *path, char *connection, in audit_setprivate() argument 699 if (audit_session(ucred, &session) != 0) in audit_setprivate()
|
/titanic_41/usr/src/cmd/fs.d/smbclnt/smbiod-svc/ |
H A D | smbiod-svc.c | 357 ucred_t *ucred = NULL; in svc_dispatch() local 375 if (door_ucred(&ucred) != 0) { in svc_dispatch() 379 uid = ucred_getruid(ucred); in svc_dispatch() 380 gid = ucred_getrgid(ucred); in svc_dispatch() 401 if (ucred != NULL) in svc_dispatch() 402 ucred_free(ucred); in svc_dispatch()
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | krb5_gss_glue.c | 1206 gss_union_cred_t ucred; in gss_krb5_copy_ccache() local 1209 ucred = (gss_union_cred_t)cred_handle; in gss_krb5_copy_ccache() 1211 mcred = gssint_get_mechanism_cred(ucred, &krb5_mechanism.mech_type); in gss_krb5_copy_ccache() 1215 mcred = gssint_get_mechanism_cred(ucred, &krb5_mechanism_old.mech_type); in gss_krb5_copy_ccache() 1229 gss_union_cred_t ucred; in gss_krb5_set_allowable_enctypes() local 1232 ucred = (gss_union_cred_t)cred; in gss_krb5_set_allowable_enctypes() 1233 mcred = gssint_get_mechanism_cred(ucred, &krb5_mechanism.mech_type); in gss_krb5_set_allowable_enctypes() 1238 mcred = gssint_get_mechanism_cred(ucred, &krb5_mechanism_old.mech_type); in gss_krb5_set_allowable_enctypes()
|
/titanic_41/usr/src/lib/rpcsec_gss/ |
H A D | svc_rpcsec_gss.c | 464 __rpc_gss_getcred(req, rcred, ucred, cookie) in __rpc_gss_getcred() argument 467 rpc_gss_ucred_t **ucred; 492 if (ucred != NULL) { 503 *ucred = NULL; 519 *ucred = &client_data->u_cred; 521 *ucred = NULL; 544 *ucred = &client_data->u_cred; 547 *ucred = NULL; 551 *ucred = &client_data->u_cred;
|
/titanic_41/usr/src/lib/libbc/inc/include/sys/ |
H A D | file.h | 41 struct ucred *f_cred; /* credentials of user who opened file */
|
/titanic_41/usr/src/lib/libnsl/rpc/ |
H A D | rpcsec_gss_if.c | 245 rpc_gss_ucred_t **ucred, void **cookie) in rpc_gss_getcred() argument 249 return ((*calls.rpc_gss_getcred)(req, rcred, ucred, cookie)); in rpc_gss_getcred()
|
/titanic_41/usr/src/man/man3c/ |
H A D | Makefile | 488 ucred.3c \ 2267 ucred_free.3c := LINKSRC = ucred.3c 2268 ucred_get.3c := LINKSRC = ucred.3c 2269 ucred_getegid.3c := LINKSRC = ucred.3c 2270 ucred_geteuid.3c := LINKSRC = ucred.3c 2271 ucred_getgroups.3c := LINKSRC = ucred.3c 2272 ucred_getlabel.3c := LINKSRC = ucred.3c 2273 ucred_getpflags.3c := LINKSRC = ucred.3c 2274 ucred_getpid.3c := LINKSRC = ucred.3c 2275 ucred_getprivset.3c := LINKSRC = ucred.3c [all …]
|
/titanic_41/usr/src/uts/common/rpc/ |
H A D | rpcsec_gss.h | 295 rpc_gss_ucred_t **ucred,
|
/titanic_41/usr/src/uts/common/rpc/sec_gss/ |
H A D | svc_rpcsec_gss.c | 550 rpc_gss_getcred(req, rcred, ucred, cookie) in rpc_gss_getcred() argument 553 rpc_gss_ucred_t **ucred; 569 if (ucred != NULL) { 570 *ucred = &client_data->u_cred; 584 *ucred = NULL; 599 *ucred = NULL;
|
/titanic_41/usr/src/pkg/manifests/ |
H A D | system-library.man3c.inc | 483 file path=usr/share/man/man3c/ucred.3c 1294 link path=usr/share/man/man3c/ucred_free.3c target=ucred.3c 1295 link path=usr/share/man/man3c/ucred_get.3c target=ucred.3c 1296 link path=usr/share/man/man3c/ucred_getegid.3c target=ucred.3c 1297 link path=usr/share/man/man3c/ucred_geteuid.3c target=ucred.3c 1298 link path=usr/share/man/man3c/ucred_getgroups.3c target=ucred.3c 1299 link path=usr/share/man/man3c/ucred_getlabel.3c target=ucred.3c 1300 link path=usr/share/man/man3c/ucred_getpflags.3c target=ucred.3c 1301 link path=usr/share/man/man3c/ucred_getpid.3c target=ucred.3c 1302 link path=usr/share/man/man3c/ucred_getprivset.3c target=ucred.3c [all …]
|
/titanic_41/usr/src/uts/common/fs/nfs/ |
H A D | nfs_log_xdr.c | 53 rpc_gss_ucred_t *ucred; in nfsl_principal_name_get() local 69 (void) rpc_gss_getcred(req, &rcred, &ucred, &cookie); in nfsl_principal_name_get()
|
/titanic_41/usr/src/cmd/zonestat/zonestatd/ |
H A D | zonestatd.c | 4354 ucred_t *ucred; in zsd_server() local 4380 ucred = alloca(ucred_size()); in zsd_server() 4382 if (door_ucred(&ucred) != 0) { in zsd_server() 4388 eset = ucred_getprivset(ucred, PRIV_EFFECTIVE); in zsd_server() 4434 ucred_t *ucred; in zsd_stat_server() local 4459 ucred = alloca(ucred_size()); in zsd_stat_server() 4460 if (door_ucred(&ucred) != 0) { in zsd_stat_server() 4464 zoneid = ucred_getzoneid(ucred); in zsd_stat_server() 4469 eset = ucred_getprivset(ucred, PRIV_EFFECTIVE); in zsd_stat_server()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | inetd.c | 2591 ucred_t *ucred = NULL; in process_uds_event() local 2603 if (getpeerucred(fd, &ucred) == -1) { in process_uds_event() 2610 euid = ucred_geteuid(ucred); in process_uds_event() 2611 ucred_free(ucred); in process_uds_event()
|
/titanic_41/usr/src/head/ |
H A D | Makefile | 198 ucred.h \
|
/titanic_41/exception_lists/ |
H A D | packaging | 389 # Private ucred kernel header 391 usr/include/sys/ucred.h
|
/titanic_41/usr/src/lib/libc/amd64/ |
H A D | Makefile | 580 ucred.o \
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | Makefile | 614 ucred.h \
|
/titanic_41/usr/src/lib/libc/i386/ |
H A D | Makefile.com | 610 ucred.o \
|