/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbiod/ |
H A D | smbiod.c | 46 #include <ucred.h> 192 ucred_t *ucred; local 201 ucred = NULL; 202 if (door_ucred(&ucred) != 0) { 206 cl_uid = ucred_getruid(ucred); 207 ucred_free(ucred); 208 ucred = NULL;
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | ucred.h | 29 * @(#)ucred.h 8.4 (Berkeley) 1/9/95 49 struct ucred { struct 71 #define NOCRED ((struct ucred *)0) /* no credential available */ 72 #define FSCRED ((struct ucred *)-1) /* filesystem credential */ 81 * This is the external representation of struct ucred. 88 void *_cr_unused1; /* compatibility with old ucred */ 92 /* This can be used for both ucred and xucred structures. */ 99 void change_egid(struct ucred *newcred, gid_t egid); 100 void change_euid(struct ucred *newcred, struct uidinfo *euip); 101 void change_rgid(struct ucred *newcre [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | krb5_gss_glue.c | 1206 gss_union_cred_t ucred; local 1209 ucred = (gss_union_cred_t)cred_handle; 1211 mcred = gssint_get_mechanism_cred(ucred, &krb5_mechanism.mech_type); 1215 mcred = gssint_get_mechanism_cred(ucred, &krb5_mechanism_old.mech_type); 1229 gss_union_cred_t ucred; local 1232 ucred = (gss_union_cred_t)cred; 1233 mcred = gssint_get_mechanism_cred(ucred, &krb5_mechanism.mech_type); 1238 mcred = gssint_get_mechanism_cred(ucred, &krb5_mechanism_old.mech_type);
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | rpcsec_gss_if.c | 245 rpc_gss_ucred_t **ucred, void **cookie) 249 return ((*calls.rpc_gss_getcred)(req, rcred, ucred, cookie)); 244 rpc_gss_getcred(struct svc_req *req, rpc_gss_rawcred_t **rcred, rpc_gss_ucred_t **ucred, void **cookie) argument
|
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbiod-svc/ |
H A D | smbiod-svc.c | 46 #include <ucred.h> 357 ucred_t *ucred = NULL; local 375 if (door_ucred(&ucred) != 0) { 379 uid = ucred_getruid(ucred); 380 gid = ucred_getrgid(ucred); 401 if (ucred != NULL) 402 ucred_free(ucred);
|
/illumos-gate/usr/src/uts/common/rpc/sec/ |
H A D | sec_svc.c | 153 rpc_gss_ucred_t *ucred; local 182 stat = rpc_gss_getcred(req, &rcred, &ucred, &cookie); 184 if (ucred != NULL) { 185 if (crsetugid(cr, ucred->uid, ucred->gid) != 0 || 186 crsetgroups(cr, ucred->gidlen, ucred->gidlist) != 0)
|
H A D | svcauthdes.c | 470 RPCLOG0(2, "authdes_getucred: missed ucred cache\n"); 497 struct bsdcred *ucred; local 509 if (!(ucred = kmem_alloc(sizeof (struct bsdcred) + 517 ucred->valid = 0; 518 new->localcred = (caddr_t)ucred;
|
/illumos-gate/usr/src/cmd/hotplugd/ |
H A D | hotplugd_door.c | 267 check_auth(ucred_t *ucred, const char *auth) argument 273 euid = ucred_geteuid(ucred); 622 audit_session(ucred_t *ucred, adt_session_data_t **sessionp) argument 631 if (adt_set_from_ucred(session, ucred, ADT_NEW) != 0) { 632 log_err("Cannot set audit session from ucred.\n"); 647 audit_changestate(ucred_t *ucred, char *auth, char *path, char *connection, argument 654 if (audit_session(ucred, &session) != 0) 690 audit_setprivate(ucred_t *ucred, char *auth, char *path, char *connection, argument 697 if (audit_session(ucred, &session) != 0)
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_log_xdr.c | 53 rpc_gss_ucred_t *ucred; local 68 (void) rpc_gss_getcred(req, &rcred, &ucred, &cookie);
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | adt.c | 279 * 1 the kernel and ucred deal with a dev_t as a 64 bit value made 283 * 3 The various audit interfaces (except ucred) pass the 32 or 285 * application. If you get a port value from ucred and pass it 291 * dev_t, so adt converts data from ucred to fit. The import/export 1424 ucred_t *ucred = ucred_get(P_MYID); local 1427 * Even if the ucred is NULL, the underlying 1435 if (ucred == NULL) { 1440 mask = ucred_getamask(ucred); 1444 ucred_free(ucred); 1447 tid = ucred_getatid(ucred); 1551 ucred_t *ucred = ucred_get(P_MYID); local 1713 ucred_t *ucred = (ucred_t *)uc; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | inetd.c | 115 #include <ucred.h> 2591 ucred_t *ucred = NULL; local 2603 if (getpeerucred(fd, &ucred) == -1) { 2610 euid = ucred_geteuid(ucred); 2611 ucred_free(ucred);
|
/illumos-gate/usr/src/cmd/zonestat/zonestatd/ |
H A D | zonestatd.c | 74 #include <ucred.h> 4354 ucred_t *ucred; local 4380 ucred = alloca(ucred_size()); 4382 if (door_ucred(&ucred) != 0) { 4388 eset = ucred_getprivset(ucred, PRIV_EFFECTIVE); 4434 ucred_t *ucred; local 4459 ucred = alloca(ucred_size()); 4460 if (door_ucred(&ucred) != 0) { 4464 zoneid = ucred_getzoneid(ucred); 4469 eset = ucred_getprivset(ucred, PRIV_EFFECTIV [all...] |