Searched refs:O_RESOLVE_BENEATH (Results 1 – 8 of 8) sorted by relevance
/freebsd/contrib/capsicum-test/ |
H A D | openat.cc | 344 #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 D | fcntl.h | 136 #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 D | beneath3.sh | 86 fd = open(file, O_CREAT | O_RDONLY | O_RESOLVE_BENEATH);
|
H A D | beneath2.sh | 95 if ((fd = open(file, O_RDONLY | O_RESOLVE_BENEATH)) != 0 &&
|
H A D | beneath.sh | 59 fd = open(name, O_RDONLY | O_RESOLVE_BENEATH);
|
/freebsd/usr.sbin/bhyveload/ |
H A D | bhyveload.c | 176 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 D | gdb.c | 1822 fd = openat(xml_dfd, path, O_RDONLY | O_RESOLVE_BENEATH); in gdb_query()
|
/freebsd/sys/kern/ |
H A D | vfs_vnops.c | 203 if ((fmode & O_RESOLVE_BENEATH) != 0) in open2nameif()
|