/freebsd-current/contrib/netbsd-tests/kernel/arch/amd64/ |
H A D | t_ptrace_wait.c | 215 struct ptrace_watchpoint pw; local 216 int len = sizeof(pw); 244 pw.pw_index = i; 245 ATF_REQUIRE(ptrace(PT_READ_WATCHPOINT, child, &pw, len) != -1); 248 printf("\t.pw_index=%d\n", pw.pw_index); 249 printf("\t.pw_lwpid=%d\n", pw.pw_lwpid); 250 printf("\t.pw_type=%#x\n", pw.pw_type); 251 printf("\t.pw_md.md_address=%p\n", pw.pw_md.md_address); 252 printf("\t.pw_md.md_condition=%#x\n", pw.pw_md.md_condition); 253 printf("\t.pw_md.md_length=%#x\n", pw 289 struct ptrace_watchpoint pw; local 366 struct ptrace_watchpoint pw; local 472 struct ptrace_watchpoint pw; local 578 struct ptrace_watchpoint pw; local 684 struct ptrace_watchpoint pw; local 790 struct ptrace_watchpoint pw; local 891 struct ptrace_watchpoint pw; local 992 struct ptrace_watchpoint pw; local 1094 struct ptrace_watchpoint pw; local 1195 struct ptrace_watchpoint pw; local 1296 struct ptrace_watchpoint pw; local 1397 struct ptrace_watchpoint pw; local 1498 struct ptrace_watchpoint pw; local [all...] |
/freebsd-current/contrib/openbsm/bin/auditdistd/ |
H A D | sandbox.c | 70 struct passwd *pw; local 96 pw = getpwnam(user); 97 if (pw == NULL) { 122 if (getgrouplist(user, pw->pw_gid, groups, &ngroups) == -1) { 137 jailst.path = pw->pw_dir; 144 "Unable to jail to directory %s", pw->pw_dir); 152 if (chroot(pw->pw_dir) == -1) { 155 pw->pw_dir); 165 if (setgid(pw->pw_gid) == -1) { 167 (unsigned int)pw [all...] |
/freebsd-current/crypto/openssh/openbsd-compat/ |
H A D | port-uw.c | 56 struct passwd *pw = authctxt->pw; local 61 char *pw_password = authctxt->valid ? shadow_pw(pw) : pw->pw_passwd; 78 if (!nischeck(pw->pw_name)) { 136 get_iaf_password(struct passwd *pw) argument 141 if (!ia_openinfo(pw->pw_name,&uinfo)) {
|
H A D | xcrypt.c | 73 struct passwd *pw; local 82 while ((pw = getpwent()) != NULL) { 83 if ((passwd = shadow_pw(pw)) == NULL) 129 shadow_pw(struct passwd *pw) argument 131 char *pw_password = pw->pw_passwd; 134 struct spwd *spw = getspnam(pw->pw_name); 141 return(get_iaf_password(pw)); 146 if (issecure() && (spw = getpwanam(pw->pw_name)) != NULL) 149 struct pr_passwd *spw = getprpwnam(pw->pw_name);
|
/freebsd-current/crypto/heimdal/kdc/ |
H A D | main.c | 75 struct passwd *pw; local 77 pw = getpwnam(runas_string); 78 if (pw == NULL) 81 if (initgroups(pw->pw_name, pw->pw_gid) < 0) 85 if (setgid(pw->pw_gid) < 0) 88 if (setuid(pw->pw_uid) < 0) 96 if (capng_change_id(pw->pw_uid, pw->pw_gid,
|
/freebsd-current/contrib/kyua/utils/ |
H A D | passwd.cpp | 127 const struct ::passwd* pw = ::getpwnam(name.c_str()); local 128 if (pw == NULL) 131 INV(pw->pw_name == name); 132 return user(pw->pw_name, pw->pw_uid, pw->pw_gid); 156 const struct ::passwd* pw = ::getpwuid(uid); local 157 if (pw == NULL) 160 INV(pw->pw_uid == uid); 161 return user(pw [all...] |
/freebsd-current/crypto/openssh/ |
H A D | platform.c | 99 platform_setusercontext(struct passwd *pw) argument 113 solaris_set_default_project(pw); 136 if (getluid() == -1 && setluid(pw->pw_uid) == -1) 147 platform_setusercontext_post_groups(struct passwd *pw) argument 162 irix_setusercontext(pw); 166 aix_usrinfo(pw); 183 if (setpcred(pw->pw_name, creds) == -1) 188 ssh_selinux_setup_exec_context(pw->pw_name); 204 platform_locked_account(struct passwd *pw) argument 207 char *passwd = pw [all...] |
H A D | auth-sia.c | 84 session_setup_sia(struct passwd *pw, char *tty) argument 91 if (sia_ses_init(&ent, saved_argc, saved_argv, host, pw->pw_name, 95 if (sia_make_entity_pwd(pw, ent) != SIASUCCESS) { 103 pw->pw_name, host); 107 pw->pw_name, host); 112 permanently_set_uid(pw);
|
H A D | auth-rhosts.c | 192 auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname, argument 205 temporarily_use_uid(pw); 216 pw->pw_dir, rhosts_files[rhosts_file_index]); 240 if (pw->pw_uid == 0) 244 client_user, pw->pw_name)) { 250 client_user, pw->pw_name)) { 261 if (stat(pw->pw_dir, &st) == -1) { 263 "no home directory %.200s", pw->pw_name, pw->pw_dir); 265 "no home directory %.200s", pw [all...] |
/freebsd-current/usr.sbin/bsdinstall/scripts/ |
H A D | rootpass | 36 printf '%s\n' "$ROOTPASS_ENC" | pw -R $BSDINSTALL_CHROOT usermod root -H 0 38 printf '%s\n' "$ROOTPASS_PLAIN" | pw -R $BSDINSTALL_CHROOT usermod root -h 0
|
/freebsd-current/usr.sbin/pw/tests/ |
H A D | pw_etcdir_test.sh | 10 atf_check -e inline:"pw: no such directory \`$fakedir'\n" \ 11 -s exit:72 -x pw -V ${fakedir} usershow root
|
H A D | Makefile | 29 ${PACKAGE}FILES+= pw.conf 30 ${PACKAGE}FILES+= pw-modified.conf
|
H A D | pw_config_test.sh | 9 atf_check -o file:$(atf_get_srcdir)/pw.conf \ 18 atf_check -o file:$(atf_get_srcdir)/pw-modified.conf \
|
/freebsd-current/lib/libcrypt/ |
H A D | crypt-md5.c | 44 crypt_md5(const char *pw, const char *salt, char *buffer) argument 68 MD5Update(&ctx, (const u_char *)pw, strlen(pw)); 76 /* Then just as many characters of the MD5(pw,salt,pw) */ 78 MD5Update(&ctx1, (const u_char *)pw, strlen(pw)); 80 MD5Update(&ctx1, (const u_char *)pw, strlen(pw)); 82 for(pl = (int)strlen(pw); p [all...] |
/freebsd-current/contrib/libarchive/libarchive/ |
H A D | archive_string_sprintf.c | 97 const wchar_t *pw; local 147 pw = va_arg(ap, wchar_t *); 148 if (pw == NULL) 149 pw = L"(null)"; 150 if (archive_string_append_from_wcs(as, pw, 151 wcslen(pw)) != 0 && errno == ENOMEM) 163 pw = va_arg(ap, wchar_t *); 164 if (pw == NULL) 165 pw = L"(null)"; 166 if (archive_string_append_from_wcs(as, pw, [all...] |
/freebsd-current/lib/libutil/ |
H A D | pw_util.c | 396 pw_make(const struct passwd *pw) argument 400 asprintf(&line, "%s:%s:%ju:%ju:%s:%ju:%ju:%s:%s:%s", pw->pw_name, 401 pw->pw_passwd, (uintmax_t)pw->pw_uid, (uintmax_t)pw->pw_gid, 402 pw->pw_class, (uintmax_t)pw->pw_change, (uintmax_t)pw->pw_expire, 403 pw->pw_gecos, pw 411 pw_make_v7(const struct passwd *pw) argument 426 pw_copy(int ffd, int tfd, const struct passwd *pw, struct passwd *old_pw) argument 602 pw_dup(const struct passwd *pw) argument 659 pw_initpwd(struct passwd *pw) argument 668 struct passwd pw, *ret; local [all...] |
/freebsd-current/tools/test/stress2/misc/ |
H A D | killpg.sh | 110 struct passwd *pw; 113 if ((pw = getpwnam("nobody")) == NULL) 116 if (setgroups(1, &pw->pw_gid) || 117 setegid(pw->pw_gid) || setgid(pw->pw_gid) || 118 seteuid(pw->pw_uid) || setuid(pw->pw_uid))
|
/freebsd-current/contrib/wpa/src/utils/ |
H A D | ext_password.c | 103 void ext_password_free(struct wpabuf *pw) argument 105 if (pw == NULL) 107 os_memset(wpabuf_mhead(pw), 0, wpabuf_len(pw)); 109 if (munlock(wpabuf_head(pw), wpabuf_len(pw)) < 0) { 114 wpabuf_free(pw);
|
/freebsd-current/usr.sbin/pw/ |
H A D | pw_vpw.c | 63 struct passwd *pw; local 68 pw = NULL; 91 pw = pw_scan(line, pwd_scanflag); 92 if (pw == NULL) 96 if (uid == pw->pw_uid) 99 if (strcmp(nam, pw->pw_name) == 0) 103 free(pw); 104 pw = NULL; 111 return (pw);
|
H A D | pwupd.c | 86 struct passwd *pw = NULL; local 94 pw = pw_dup(pwd); 109 if (pw_copy(pfd, tfd, pw, old_pw) == -1) { 120 if (pw_mkdb(pw != NULL ? pw->pw_name : NULL) == -1) { 124 free(pw);
|
/freebsd-current/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_setuid.c | 82 struct passwd *pw; local 87 while ((pw = getpwent()) != NULL) { 94 rv = setuid(pw->pw_uid); 101 if (uid != pw->pw_uid) 110 atf_tc_fail("failed to change UID to %u", pw->pw_uid);
|
/freebsd-current/kerberos5/lib/libgssapi_krb5/ |
H A D | pname_to_uid.c | 43 struct passwd pwd, *pw; local 60 pw = NULL; 66 error = getpwnam_r(lname, &pwd, bufp, buflen, &pw); 75 if (pw) { 76 *uidp = pw->pw_uid;
|
/freebsd-current/sbin/hastd/ |
H A D | subr.c | 156 struct passwd *pw; local 168 pw = getpwnam(HAST_USER); 169 if (pw == NULL) { 183 jailst.path = pw->pw_dir; 201 "Unable to jail to directory to %s", pw->pw_dir); 202 if (chroot(pw->pw_dir) == -1) { 205 pw->pw_dir); 210 gidset[0] = pw->pw_gid; 213 (unsigned int)pw->pw_gid); 216 if (setgid(pw [all...] |
/freebsd-current/usr.bin/env/ |
H A D | env.c | 65 struct passwd *pw; local 75 pw = NULL; 133 pw = getpwnam(login_name); 134 if (pw == NULL) { 139 pw = getpwuid(uid); 141 if (pw == NULL) 145 * Note that it is safe for pw to be null here; the libutil 155 lc = login_getpwclass(pw); 164 setclassenvironment(lc, pw, 1); 165 setclassenvironment(lc, pw, [all...] |
/freebsd-current/usr.bin/chkey/ |
H A D | chkey.c | 82 struct passwd *pw; local 125 pw = ypgetpwuid(uid); 127 pw = getpwuid(uid); 129 if (pw == NULL) { 139 pw = getpwuid(0); 140 if (pw == NULL) 147 cryptpw = crypt(pass, pw->pw_passwd); 148 if (cryptpw == NULL || strcmp(cryptpw, pw->pw_passwd) != 0) 246 static struct passwd pw; local 258 pw [all...] |