Searched refs:pSecImpl (Results 1 – 3 of 3) sorted by relevance
59 oslSecurityImpl *pSecImpl = (oslSecurityImpl*) malloc(sizeof(oslSecurityImpl)); in osl_getCurrentSecurity() local64 memcpy(&pSecImpl->m_pPasswd, pPasswd, sizeof(pSecImpl->m_pPasswd)); in osl_getCurrentSecurity()65 pSecImpl->m_isValid = sal_True; in osl_getCurrentSecurity()71 pSecImpl->m_pPasswd.pw_name = getenv("USER"); in osl_getCurrentSecurity()72 pSecImpl->m_pPasswd.pw_dir = getenv("HOME"); in osl_getCurrentSecurity()73 if (pSecImpl->m_pPasswd.pw_name && pSecImpl->m_pPasswd.pw_dir) in osl_getCurrentSecurity()74 pSecImpl->m_isValid = sal_True; in osl_getCurrentSecurity()77 pSecImpl->m_pPasswd.pw_name = "unknown"; in osl_getCurrentSecurity()78 pSecImpl->m_pPasswd.pw_dir = "/tmp"; in osl_getCurrentSecurity()79 pSecImpl->m_isValid = sal_False; in osl_getCurrentSecurity()[all …]
93 oslSecurityImpl* pSecImpl = malloc(sizeof(oslSecurityImpl)); in osl_getCurrentSecurity() local95 pSecImpl->m_pNetResource = NULL; in osl_getCurrentSecurity()96 pSecImpl->m_User[0] = '\0'; in osl_getCurrentSecurity()97 pSecImpl->m_hToken = NULL; in osl_getCurrentSecurity()98 pSecImpl->m_hProfile = NULL; in osl_getCurrentSecurity()100 return ((oslSecurity)pSecImpl); in osl_getCurrentSecurity()137 oslSecurityImpl* pSecImpl = malloc(sizeof(oslSecurityImpl)); in osl_loginUser() local139 pSecImpl->m_pNetResource = NULL; in osl_loginUser()140 pSecImpl->m_hToken = hUserToken; in osl_loginUser()141 pSecImpl->m_hProfile = NULL; in osl_loginUser()[all …]
669 oslSecurityImpl *pSecImpl = (oslSecurityImpl *)Security; in osl_psz_getUserIdent() local671 if (pSecImpl == NULL) in osl_psz_getUserIdent()674 nChr = snprintf(buffer, sizeof(buffer), "%u", pSecImpl->m_pPasswd.pw_uid); in osl_psz_getUserIdent()702 oslSecurityImpl *pSecImpl = (oslSecurityImpl *)Security; in osl_psz_getUserName() local704 if (pSecImpl == NULL) in osl_psz_getUserName()707 strncpy(pszName, pSecImpl->m_pPasswd.pw_name, nMax); in osl_psz_getUserName()734 oslSecurityImpl *pSecImpl = (oslSecurityImpl *)Security; in osl_psz_getHomeDir() local736 if (pSecImpl == NULL) in osl_psz_getHomeDir()740 if (getuid() == pSecImpl->m_pPasswd.pw_uid) in osl_psz_getHomeDir()766 strncpy(pszDirectory, pSecImpl->m_pPasswd.pw_dir, nMax); in osl_psz_getHomeDir()[all …]