Home
last modified time | relevance | path

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

/freebsd/contrib/capsicum-test/
H A Dopenat.cc344 #if !defined(O_RESOLVE_BENEATH) && defined(O_BENEATH)
345 #define O_RESOLVE_BENEATH O_BENEATH macro
348 #ifdef O_RESOLVE_BENEATH
350 CheckPolicing(O_RESOLVE_BENEATH); in TEST_F()
353 EXPECT_OPEN_OK(openat(AT_FDCWD, "topfile", O_RDONLY|O_RESOLVE_BENEATH)); in TEST_F()
354 EXPECT_OPEN_OK(openat(AT_FDCWD, "subdir/bottomfile", O_RDONLY|O_RESOLVE_BENEATH)); in TEST_F()
357 EXPECT_OPENAT_FAIL_TRAVERSAL(AT_FDCWD, "/etc/passwd", O_RDONLY|O_RESOLVE_BENEATH); in TEST_F()
358 EXPECT_OPENAT_FAIL_TRAVERSAL(dir_fd_, "/etc/passwd", O_RDONLY|O_RESOLVE_BENEATH); in TEST_F()
359 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "/etc/passwd", O_RDONLY|O_RESOLVE_BENEATH); in TEST_F()
364 CheckPolicing(O_RESOLVE_BENEATH); in FORK_TEST_F()
/freebsd/sys/sys/
H A Dfcntl.h136 #define O_RESOLVE_BENEATH 0x00800000 /* Do not allow name resolution to walk macro
158 #define FKQALLOWED O_RESOLVE_BENEATH
/freebsd/tools/test/stress2/misc/
H A Dbeneath3.sh86 fd = open(file, O_CREAT | O_RDONLY | O_RESOLVE_BENEATH);
H A Dbeneath2.sh95 if ((fd = open(file, O_RDONLY | O_RESOLVE_BENEATH)) != 0 &&
H A Dbeneath.sh59 fd = open(name, O_RDONLY | O_RESOLVE_BENEATH);
/freebsd/usr.sbin/bhyveload/
H A Dbhyveload.c176 flags = O_RDONLY | O_RESOLVE_BENEATH; in cb_open()
777 fd = openat(bootfd, loader, O_RDONLY | O_RESOLVE_BENEATH); in loader_open()
/freebsd/usr.sbin/bhyve/
H A Dgdb.c1822 fd = openat(xml_dfd, path, O_RDONLY | O_RESOLVE_BENEATH); in gdb_query()
/freebsd/sys/kern/
H A Dvfs_vnops.c203 if ((fmode & O_RESOLVE_BENEATH) != 0) in open2nameif()