Home
last modified time | relevance | path

Searched refs:sub_fd_ (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/capsicum-test/
H A Dopenat.cc228 sub_fd_ = open(TmpFile(SUBDIR), O_RDONLY); in OpenatTest()
229 EXPECT_OK(sub_fd_); in OpenatTest()
238 close(sub_fd_); in ~OpenatTest()
265 EXPECT_OPEN_OK(openat(sub_fd_, "bottomfile", O_RDONLY|oflag)); in CheckPolicing()
266 EXPECT_OPEN_OK(openat(sub_fd_, ".", O_RDONLY|oflag)); in CheckPolicing()
269 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "../topfile", O_RDONLY|oflag); in CheckPolicing()
270 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "../subdir/bottomfile", O_RDONLY|oflag); in CheckPolicing()
271 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "..", O_RDONLY|oflag); in CheckPolicing()
288 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "symlink.absolute_in", O_RDONLY|oflag); in CheckPolicing()
289 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "symlink.up", O_RDONLY|oflag); in CheckPolicing()
[all …]