Lines Matching refs:pw
1466 struct passwd* pw; in TEST_IMPL() local
1479 pw = getpwnam("nobody"); in TEST_IMPL()
1480 ASSERT_NOT_NULL(pw); in TEST_IMPL()
1481 options.uid = pw->pw_uid; in TEST_IMPL()
1482 options.gid = pw->pw_gid; in TEST_IMPL()
1483 snprintf(uidstr, sizeof(uidstr), "%d", pw->pw_uid); in TEST_IMPL()
1484 snprintf(gidstr, sizeof(gidstr), "%d", pw->pw_gid); in TEST_IMPL()
1516 struct passwd* pw; in TEST_IMPL() local
1517 pw = getpwnam("nobody"); in TEST_IMPL()
1518 ASSERT_NOT_NULL(pw); in TEST_IMPL()
1519 ASSERT_OK(setgid(pw->pw_gid)); in TEST_IMPL()
1520 ASSERT_OK(setuid(pw->pw_uid)); in TEST_IMPL()
1567 struct passwd* pw; in TEST_IMPL() local
1568 pw = getpwnam("nobody"); in TEST_IMPL()
1569 ASSERT_NOT_NULL(pw); in TEST_IMPL()
1570 ASSERT_OK(setgid(pw->pw_gid)); in TEST_IMPL()
1571 ASSERT_OK(setuid(pw->pw_uid)); in TEST_IMPL()