/system/core/adb/ |
diagnose_usb.cpp | 28 #include <pwd.h> 54 passwd* pwd = getpwuid(getuid()); local 56 pwd ? pwd->pw_name : "?");
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
PasswordRetriever.java | 142 char[] pwd = spec.substring("pass:".length()).toCharArray(); local 143 return getPasswords(pwd, additionalPwdEncodings); 148 char[] pwd = console.readPassword(description + ": "); local 149 if (pwd == null) { 152 return getPasswords(pwd, additionalPwdEncodings); 199 private List<char[]> getPasswords(char[] pwd, Charset... additionalEncodings) { 201 addPasswords(passwords, pwd, additionalEncodings); 218 char[] pwd = decodePassword(encodedPwd, encodingForDecoding); local 219 addPasswords(passwords, pwd, additionalEncodings); 232 private void addPasswords(List<char[]> passwords, char[] pwd, Charset... additionalEncodings) [all...] |
/external/toybox/toys/pending/ |
crontab.c | 263 static void do_edit(struct passwd *pwd) 275 snprintf(toybuf, sizeof(toybuf), "%s%s", TT.cdir, pwd->pw_name); 283 } else printf("No crontab for '%s'- using an empty one\n", pwd->pw_name); 290 char *prog = pwd->pw_shell; 292 xsetuser(pwd); 293 if (pwd->pw_uid) { 294 if (setenv("USER", pwd->pw_name, 1)) _exit(1); 295 if (setenv("LOGNAME", pwd->pw_name, 1)) _exit(1); 297 if (setenv("HOME", pwd->pw_dir, 1)) _exit(1); 329 update_crontab(tname, pwd->pw_name) 335 struct passwd *pwd = NULL; local [all...] |
userdel.c | 94 struct passwd *pwd = NULL; local 96 pwd = xgetpwnam(*toys.optargs); 97 update_password("/etc/passwd", pwd->pw_name, NULL); 98 update_password("/etc/shadow", pwd->pw_name, NULL); 110 char *arg[] = {"rm", "-fr", pwd->pw_dir, NULL, NULL}; 112 sprintf(toybuf, "/var/spool/mail/%s",pwd->pw_name);
|
/external/ltp/testcases/kernel/syscalls/nice/ |
nice04.c | 24 #include <pwd.h>
|
/external/selinux/restorecond/ |
utmpwatcher.c | 40 #include <pwd.h> 87 struct passwd *pwd = getpwnam(ptr->string); local 88 if (pwd) { 90 if (asprintf(&path, "%s%s", pwd->pw_dir, file) < 0)
|
restorecond.c | 57 #include <pwd.h> 194 struct passwd *pwd = getpwuid(uid); local 195 if (!pwd) 198 homedir = pwd->pw_dir;
|
/cts/hostsidetests/jvmti/attaching/host/src/android/jvmti/cts/ |
JvmtiAttachingHostTest.java | 82 String pwd = device.executeShellCommand("run-as " + pkg + " pwd"); 83 if (pwd == null) { 84 throw new RuntimeException("pwd failed"); 86 pwd = pwd.trim(); 87 if (pwd.isEmpty()) { 88 throw new RuntimeException("pwd failed"); 96 installLibToDataData(device, pkg, abiName, apk, pwd, AGENT, 128 String pwd = device.executeShellCommand("run-as " + pkg + " pwd") [all...] |
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/ |
StubFtpServer_StartTest.java | 62 PwdCommandHandler pwd = new PwdCommandHandler();
local 63 pwd.setDirectory(DIR);
67 stubFtpServer.setCommandHandler(CommandNames.PWD, pwd);
75 assertEquals("pwd", DIR, ftpClient.printWorkingDirectory());
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
DefaultSSLContextImpl.java | 74 char[] pwd = (keystorepwd == null) ? null : keystorepwd.toCharArray(); local 80 ks.load(is, pwd); 89 kmf.init(ks, pwd); 106 char[] pwd = (keystorepwd == null) ? null : keystorepwd.toCharArray(); local 113 ks.load(is, pwd);
|
/external/selinux/sandbox/ |
seunshare.c | 15 #include <pwd.h> 382 struct passwd *pwd, int copy_content) 394 if (cmdbuf && spawn_command(cmdbuf, pwd->pw_uid) != 0) { 408 if (cmdbuf && spawn_command(cmdbuf, pwd->pw_uid) != 0) rc++; 419 if ((uid_t)setfsuid(pwd->pw_uid) != 0) { 434 struct stat *out_st, struct passwd *pwd, security_context_t execcon) 444 if ((uid_t)setfsuid(pwd->pw_uid) != 0) 465 if ((uid_t)setfsuid(0) != pwd->pw_uid) 469 if (asprintf(&tmpdir, "/tmp/.sandbox-%s-XXXXXX", pwd->pw_name) == -1) { 521 if ((uid_t)setfsuid(pwd->pw_uid) != 0 656 struct passwd *pwd=getpwuid(uid); local [all...] |
/external/toybox/toys/lsb/ |
passwd.c | 70 static int verify_passwd(char * pwd) 74 if (!pwd) return 1; 75 if (pwd[0] == '!' || pwd[0] == '*') return 1; 77 pass = crypt(toybuf, pwd); 78 if (pass && !strcmp(pass, pwd)) return 0;
|
/build/make/core/tasks/ |
check_emu_boot.mk | 15 (export ANDROID_PRODUCT_OUT=$$(cd $(PRODUCT_OUT);pwd);\ 16 export ANDROID_BUILD_TOP=$$(pwd);\
|
/external/ltp/testcases/kernel/syscalls/chdir/ |
chdir03.c | 31 #include <pwd.h>
|
/external/ltp/testcases/kernel/syscalls/fchdir/ |
fchdir03.c | 34 #include <pwd.h>
|
/external/ppp/pppd/plugins/radius/ |
includes.h | 43 #include <pwd.h>
|
/frameworks/av/media/libmediaextractor/ |
MediaExtractor.cpp | 20 #include <pwd.h>
|
/external/iptables/extensions/ |
libxt_owner.c | 8 #include <pwd.h> 140 struct passwd *pwd; local 147 if ((pwd = getpwnam(cb->arg)) != NULL) 148 id = pwd->pw_uid; 187 struct passwd *pwd; local 194 if ((pwd = getpwnam(cb->arg)) != NULL) 195 id = pwd->pw_uid; 245 struct passwd *pwd; local 252 if ((pwd = getpwnam(cb->arg)) != NULL) 253 from = to = pwd->pw_uid 302 struct passwd *pwd = getpwuid(info->uid); local 351 struct passwd *pwd = getpwuid(info->uid); local 400 const struct passwd *pwd = getpwuid(info->uid_min); local [all...] |
/prebuilts/go/darwin-x86/src/os/user/ |
cgo_lookup_unix.go | 22 #include <pwd.h> 26 static int mygetpwuid_r(int uid, struct passwd *pwd, 28 return getpwuid_r(uid, pwd, buf, buflen, result); 31 static int mygetpwnam_r(const char *name, struct passwd *pwd, 33 return getpwnam_r(name, pwd, buf, buflen, result); 53 var pwd C.struct_passwd 67 &pwd, 78 return buildUser(&pwd), err 90 var pwd C.struct_passwd 101 &pwd, [all...] |
/prebuilts/go/linux-x86/src/os/user/ |
cgo_lookup_unix.go | 22 #include <pwd.h> 26 static int mygetpwuid_r(int uid, struct passwd *pwd, 28 return getpwuid_r(uid, pwd, buf, buflen, result); 31 static int mygetpwnam_r(const char *name, struct passwd *pwd, 33 return getpwnam_r(name, pwd, buf, buflen, result); 53 var pwd C.struct_passwd 67 &pwd, 78 return buildUser(&pwd), err 90 var pwd C.struct_passwd 101 &pwd, [all...] |
/frameworks/base/services/core/java/com/android/server/locksettings/ |
SyntheticPasswordManager.java | 95 private static final String PASSWORD_DATA_NAME = "pwd"; 128 private static final byte[] PERSONALISATION_WEAVER_PASSWORD = "weaver-pwd".getBytes(); 614 PasswordData pwd = PasswordData.create(credentialType); local 615 byte[] pwdToken = computePasswordToken(credential, pwd); 629 synchronizeWeaverFrpPassword(pwd, requestedQuality, userId, weaverSlot); 631 pwd.passwordHandle = null; 645 pwd.passwordHandle = response.getPayload(); 646 sid = sidFromPasswordHandle(pwd.passwordHandle); 649 synchronizeFrpPassword(pwd, requestedQuality, userId); 651 saveState(PASSWORD_DATA_NAME, pwd.toBytes(), handle, userId) 663 PasswordData pwd = PasswordData.fromBytes(persistentData.payload); local 670 PasswordData pwd = PasswordData.fromBytes(persistentData.payload); local 686 PasswordData pwd = PasswordData.fromBytes(loadState(PASSWORD_DATA_NAME, handle, local 825 PasswordData pwd = PasswordData.fromBytes(loadState(PASSWORD_DATA_NAME, handle, userId)); local [all...] |
/bionic/tests/headers/posix/ |
pwd_h.c | 29 #include <pwd.h>
|
/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/ |
StubFunctions.c | 19 #include <pwd.h>
|
/external/e2fsprogs/include/nonunix/ |
unistd.h | 35 #include <pwd.h>
|
/external/libunwind/src/coredump/ |
_UCD_lib.h | 53 #include <pwd.h>
|