Searched refs:dfd_cap (Results 1 – 2 of 2) sorted by relevance
/freebsd/tools/regression/security/cap_test/ |
H A D | cap_test_capabilities.c | 116 int fd_cap, fd_capcap, dfd_cap; in try_file_ops() local 135 REQUIRE(dfd_cap = cap_new(dirfd, rights)); in try_file_ops() 136 CHECK(cap_getrights(dfd_cap, &erights) == 0); in try_file_ops() 184 ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDONLY, 0600); in try_file_ops() 189 ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY | O_APPEND, in try_file_ops() 195 ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDWR | O_APPEND, 0600); in try_file_ops() 207 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDONLY); in try_file_ops() 211 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND); in try_file_ops() 215 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR | O_APPEND); in try_file_ops() 219 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDONLY); in try_file_ops() [all …]
|
/freebsd/contrib/capsicum-test/ |
H A D | capability-fd.cc | 680 int dfd_cap = dup(dirfd); in TryDirOps() local 681 EXPECT_OK(dfd_cap); in TryDirOps() 682 EXPECT_OK(cap_rights_limit(dfd_cap, &rights)); in TryDirOps() 683 EXPECT_OK(cap_rights_get(dfd_cap, &erights)); in TryDirOps() 686 int rc = openat(dfd_cap, "cap_create", O_CREAT | O_RDONLY, 0600); in TryDirOps() 692 rc = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY | O_APPEND, 0600); in TryDirOps() 698 rc = openat(dfd_cap, "cap_create", O_CREAT | O_RDWR | O_APPEND, 0600); in TryDirOps() 708 rc = faccessat(dfd_cap, "cap_faccess", F_OK, 0); in TryDirOps() 715 rc = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDONLY); in TryDirOps() 720 rc = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND); in TryDirOps() [all …]
|