Searched refs:pwent (Results 1 – 5 of 5) sorted by relevance
/external/selinux/libselinux/src/ |
D | seusers.c | 97 struct passwd pwstorage, *pwent = NULL; in get_default_gid() local 105 int retval = getpwnam_r(name, &pwstorage, rbuf, rbuflen, &pwent); in get_default_gid() 106 if (retval == 0 && pwent) { in get_default_gid() 107 gid = pwent->pw_gid; in get_default_gid()
|
/external/selinux/libsemanage/src/ |
D | genhomedircon.c | 817 struct passwd pwstorage, *pwent = NULL; in get_users() local 876 retval = getpwnam_r(name, &pwstorage, rbuf, rbuflen, &pwent); in get_users() 877 if (retval != 0 || pwent == NULL) { in get_users() 888 int len = strlen(pwent->pw_dir) -1; in get_users() 889 for(; len > 0 && pwent->pw_dir[len] == '/'; len--) { in get_users() 890 pwent->pw_dir[len] = '\0'; in get_users() 893 if (strcmp(pwent->pw_dir, "/") == 0) { in get_users() 899 if (ignore(pwent->pw_dir)) in get_users() 902 prefix, pwent->pw_dir, level) != STATUS_SUCCESS) { in get_users()
|
/external/openssh/ |
D | monitor.c | 788 struct passwd *pwent; in mm_answer_pwnamallow() local 799 pwent = getpwnamallow(username); in mm_answer_pwnamallow() 802 setproctitle("%s [priv]", pwent ? username : "unknown"); in mm_answer_pwnamallow() 807 if (pwent == NULL) { in mm_answer_pwnamallow() 814 authctxt->pw = pwent; in mm_answer_pwnamallow() 818 buffer_put_string(m, pwent, sizeof(struct passwd)); in mm_answer_pwnamallow() 819 buffer_put_cstring(m, pwent->pw_name); in mm_answer_pwnamallow() 822 buffer_put_cstring(m, pwent->pw_gecos); in mm_answer_pwnamallow() 825 buffer_put_cstring(m, pwent->pw_class); in mm_answer_pwnamallow() 827 buffer_put_cstring(m, pwent->pw_dir); in mm_answer_pwnamallow() [all …]
|
/external/sqlite/dist/orig/ |
D | shell.c | 4268 struct passwd *pwent; in find_home_dir() local 4270 if( (pwent=getpwuid(uid)) != NULL) { in find_home_dir() 4271 home_dir = pwent->pw_dir; in find_home_dir()
|
/external/sqlite/dist/ |
D | shell.c | 4290 struct passwd *pwent; in find_home_dir() local 4292 if( (pwent=getpwuid(uid)) != NULL) { in find_home_dir() 4293 home_dir = pwent->pw_dir; in find_home_dir()
|