Home
last modified time | relevance | path

Searched refs:pw (Results 1 – 9 of 9) sorted by relevance

/system/extras/su/
Dsu.c37 struct passwd *pw; in pwtoid() local
38 pw = getpwnam(tok); in pwtoid()
39 if (pw) { in pwtoid()
40 if (uid) *uid = pw->pw_uid; in pwtoid()
41 if (gid) *gid = pw->pw_gid; in pwtoid()
104 struct passwd *pw; in main() local
/system/core/toolbox/
Dchown.c34 struct passwd *pw; in chown_main() local
39 pw = getpwnam(user); in chown_main()
40 if (pw != NULL) { in chown_main()
41 uid = pw->pw_uid; in chown_main()
Did.c11 struct passwd *pw = getpwuid(uid); in print_uid() local
13 if (pw) { in print_uid()
14 printf("%d(%s)", uid, pw->pw_name); in print_uid()
Dlsof.c171 struct passwd *pw; in lsof_dumpinfo() local
179 pw = getpwuid(pidstat.st_uid); in lsof_dumpinfo()
180 if (pw) { in lsof_dumpinfo()
181 strlcpy(info.user, pw->pw_name, sizeof(info.user)); in lsof_dumpinfo()
Dps.c47 struct passwd *pw; in ps_line() local
140 pw = getpwuid(stats.st_uid); in ps_line()
141 if(pw == 0) { in ps_line()
144 strcpy(user,pw->pw_name); in ps_line()
Dls.c80 struct passwd *pw = getpwuid(uid); in user2str() local
81 if(pw) { in user2str()
82 strcpy(out, pw->pw_name); in user2str()
/system/extras/tests/fstest/
Dperm_checker.c72 struct passwd *pw; in str2uid() local
77 if (!(pw = getpwnam(str))) { in str2uid()
81 return pw->pw_uid; in str2uid()
202 struct passwd *pw; in print_new_rule() local
205 pw = getpwuid(uid); in print_new_rule()
206 printf("%s %4o %4o %s %d %s %d\n", name, mode, mode, pw->pw_name, uid, in print_new_rule()
/system/security/keystore/
Dkeystore.cpp683 ResponseCode initialize(const android::String8& pw, Entropy* entropy) { in initialize() argument
687 ResponseCode response = writeMasterKey(pw, entropy); in initialize()
695 ResponseCode writeMasterKey(const android::String8& pw, Entropy* entropy) { in writeMasterKey() argument
697 generateKeyFromPassword(passwordKey, MASTER_KEY_SIZE_BYTES, pw, mSalt); in writeMasterKey()
704 ResponseCode readMasterKey(const android::String8& pw, Entropy* entropy) { in readMasterKey() argument
725 generateKeyFromPassword(passwordKey, MASTER_KEY_SIZE_BYTES, pw, salt); in readMasterKey()
740 response = writeMasterKey(pw, entropy); in readMasterKey()
814 void generateKeyFromPassword(uint8_t* key, ssize_t keySize, const android::String8& pw, in generateKeyFromPassword() argument
826 PKCS5_PBKDF2_HMAC_SHA1(reinterpret_cast<const char*>(pw.string()), pw.length(), salt, in generateKeyFromPassword()
910 ResponseCode initializeUser(const android::String8& pw, uid_t uid) { in initializeUser() argument
[all …]
/system/vold/
Dcryptfs.h142 int cryptfs_check_passwd(char *pw);