Lines Matching refs:pw
1464 struct passwd* pw; in TEST_IMPL() local
1477 pw = getpwnam("nobody"); in TEST_IMPL()
1478 ASSERT_NOT_NULL(pw); in TEST_IMPL()
1479 options.uid = pw->pw_uid; in TEST_IMPL()
1480 options.gid = pw->pw_gid; in TEST_IMPL()
1481 snprintf(uidstr, sizeof(uidstr), "%d", pw->pw_uid); in TEST_IMPL()
1482 snprintf(gidstr, sizeof(gidstr), "%d", pw->pw_gid); in TEST_IMPL()
1514 struct passwd* pw; in TEST_IMPL() local
1515 pw = getpwnam("nobody"); in TEST_IMPL()
1516 ASSERT_NOT_NULL(pw); in TEST_IMPL()
1517 ASSERT_OK(setgid(pw->pw_gid)); in TEST_IMPL()
1518 ASSERT_OK(setuid(pw->pw_uid)); in TEST_IMPL()
1565 struct passwd* pw; in TEST_IMPL() local
1566 pw = getpwnam("nobody"); in TEST_IMPL()
1567 ASSERT_NOT_NULL(pw); in TEST_IMPL()
1568 ASSERT_OK(setgid(pw->pw_gid)); in TEST_IMPL()
1569 ASSERT_OK(setuid(pw->pw_uid)); in TEST_IMPL()