/system/extras/su/ |
D | su.c | 31 struct passwd* pw = getpwnam(tok); in pwtoid() local 32 if (pw) { in pwtoid() 33 if (uid) *uid = pw->pw_uid; in pwtoid() 34 if (gid) *gid = pw->pw_gid; in pwtoid() 124 struct passwd* pw = getpwuid(uid); in main() local 125 if (pw) { in main() 126 setenv("LOGNAME", pw->pw_name, 1); in main() 127 setenv("USER", pw->pw_name, 1); in main()
|
/system/security/keystore/ |
D | user_state.cpp | 79 ResponseCode UserState::initialize(const android::String8& pw, Entropy* entropy) { in initialize() argument 83 ResponseCode response = writeMasterKey(pw, entropy); in initialize() 133 ResponseCode UserState::writeMasterKey(const android::String8& pw, Entropy* entropy) { in writeMasterKey() argument 135 generateKeyFromPassword(passwordKey, MASTER_KEY_SIZE_BYTES, pw, mSalt); in writeMasterKey() 142 ResponseCode UserState::readMasterKey(const android::String8& pw, Entropy* entropy) { in readMasterKey() argument 163 generateKeyFromPassword(passwordKey, MASTER_KEY_SIZE_BYTES, pw, salt); in readMasterKey() 177 response = writeMasterKey(pw, entropy); in readMasterKey() 228 void UserState::generateKeyFromPassword(uint8_t* key, ssize_t keySize, const android::String8& pw, in generateKeyFromPassword() argument 240 PKCS5_PBKDF2_HMAC_SHA1(reinterpret_cast<const char*>(pw.string()), pw.length(), salt, saltSize, in generateKeyFromPassword()
|
D | user_state.h | 50 ResponseCode initialize(const android::String8& pw, Entropy* entropy); 54 ResponseCode writeMasterKey(const android::String8& pw, Entropy* entropy); 55 ResponseCode readMasterKey(const android::String8& pw, Entropy* entropy); 69 void generateKeyFromPassword(uint8_t* key, ssize_t keySize, const android::String8& pw,
|
D | keystore.h | 50 ResponseCode initializeUser(const android::String8& pw, uid_t userId); 53 ResponseCode writeMasterKey(const android::String8& pw, uid_t userId); 54 ResponseCode readMasterKey(const android::String8& pw, uid_t userId);
|
D | keystore.cpp | 63 ResponseCode KeyStore::initializeUser(const android::String8& pw, uid_t userId) { in initializeUser() argument 65 return userState->initialize(pw, mEntropy); in initializeUser() 74 ResponseCode KeyStore::writeMasterKey(const android::String8& pw, uid_t userId) { in writeMasterKey() argument 76 return userState->writeMasterKey(pw, mEntropy); in writeMasterKey() 79 ResponseCode KeyStore::readMasterKey(const android::String8& pw, uid_t userId) { in readMasterKey() argument 81 return userState->readMasterKey(pw, mEntropy); in readMasterKey()
|
D | key_store_service.h | 54 int32_t unlock(int32_t userId, const String16& pw);
|
D | key_store_service.cpp | 238 int32_t KeyStoreService::unlock(int32_t userId, const String16& pw) { in unlock() argument 259 const String8 password8(pw); in unlock()
|
/system/core/run-as/ |
D | run-as.c | 209 struct passwd* pw = getpwuid(uid); in main() local 210 setenv("LOGNAME", pw->pw_name, 1); in main() 211 setenv("SHELL", pw->pw_shell, 1); in main() 212 setenv("USER", pw->pw_name, 1); in main()
|
/system/core/toolbox/ |
D | ps.c | 58 struct passwd *pw; in ps_line() local 150 pw = getpwuid(stats.st_uid); in ps_line() 151 if(pw == 0 || (display_flags & SHOW_NUMERIC_UID)) { in ps_line() 154 strcpy(user,pw->pw_name); in ps_line()
|
/system/core/adb/ |
D | shell_service.cpp | 248 passwd* pw = getpwuid(getuid()); in ForkAndExec() local 264 if (pw != nullptr) { in ForkAndExec() 266 env["HOME"] = pw->pw_dir; in ForkAndExec() 267 env["LOGNAME"] = pw->pw_name; in ForkAndExec() 268 env["USER"] = pw->pw_name; in ForkAndExec() 269 env["SHELL"] = pw->pw_shell; in ForkAndExec()
|
/system/vold/ |
D | cryptfs.h | 231 int cryptfs_check_passwd(char *pw);
|