Home
last modified time | relevance | path

Searched refs:ossn (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_usr.c484 smbioc_ossn_t *ossn = NULL; in smb_usr_get_ssn() local
494 ossn = kmem_alloc(sizeof (*ossn), KM_SLEEP); in smb_usr_get_ssn()
495 if (ddi_copyin((void *)arg, ossn, sizeof (*ossn), flags)) { in smb_usr_get_ssn()
504 if (ossn->ssn_owner == SMBM_ANY_OWNER) in smb_usr_get_ssn()
505 ossn->ssn_owner = realuid; in smb_usr_get_ssn()
511 if (secpolicy_vnode_owner(cr, ossn->ssn_owner)) { in smb_usr_get_ssn()
521 ossn->ssn_srvname[SMBIOC_MAX_NAME-1] = '\0'; in smb_usr_get_ssn()
522 ossn->ssn_id.id_domain[ SMBIOC_MAX_NAME-1] = '\0'; in smb_usr_get_ssn()
523 ossn->ssn_id.id_user[ SMBIOC_MAX_NAME-1] = '\0'; in smb_usr_get_ssn()
526 ossn->ssn_vopt |= SMBVOPT_CREATE; in smb_usr_get_ssn()
[all …]
H A Dsmb_conn.c401 smb_vc_create(smbioc_ossn_t *ossn, smb_cred_t *scred, smb_vc_t **vcpp) in smb_vc_create() argument
431 bcopy(ossn, &vcp->vc_ssn, sizeof (*ossn)); in smb_vc_create()
458 smb_vc_findcreate(smbioc_ossn_t *ossn, smb_cred_t *scred, smb_vc_t **vcpp) in smb_vc_findcreate() argument
485 if (vcp->vc_owner != ossn->ssn_owner) in smb_vc_findcreate()
495 &ossn->ssn_id.id_srvaddr, in smb_vc_findcreate()
498 if (u8_strcmp(vc_id->id_user, ossn->ssn_id.id_user, 0, in smb_vc_findcreate()
501 if (u8_strcmp(vc_id->id_domain, ossn->ssn_id.id_domain, 0, in smb_vc_findcreate()
515 ossn->ssn_vopt &= ~SMBVOPT_CREATE; in smb_vc_findcreate()
533 if (ossn->ssn_vopt & SMBVOPT_CREATE) { in smb_vc_findcreate()
538 error = smb_vc_create(ossn, scred, &vcp); in smb_vc_findcreate()
H A Dsmb_conn.h492 int smb_vc_create(smbioc_ossn_t *ossn, smb_cred_t *scred, smb_vc_t **vcpp);
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dconnect.c130 smbioc_ossn_t *ossn = &ctx->ct_ssn; in smb_iod_connect() local
190 err, ossn->ssn_srvname); in smb_iod_connect()
215 err, ossn->ssn_srvname); in smb_iod_connect()
357 smbioc_ossn_t *ossn = &ctx->ct_ssn; in smb__ssnsetup() local
381 err, ossn->ssn_srvname); in smb__ssnsetup()