Searched refs:fd_cap (Results 1 – 1 of 1) 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 128 REQUIRE(fd_cap = cap_new(filefd, rights)); in try_file_ops() 129 CHECK(cap_getrights(fd_cap, &erights) == 0); in try_file_ops() 131 REQUIRE(fd_capcap = cap_new(fd_cap, rights)); in try_file_ops() 134 CHECK(fd_capcap != fd_cap); in try_file_ops() 139 ssize = read(fd_cap, &ch, sizeof(ch)); in try_file_ops() 142 ssize = write(fd_cap, &ch, sizeof(ch)); in try_file_ops() 145 off = lseek(fd_cap, 0, SEEK_SET); in try_file_ops() 148 ssize = pread(fd_cap, &ch, sizeof(ch), 0); in try_file_ops() 149 ssize2 = pread(fd_cap, &ch, sizeof(ch), 0); in try_file_ops() [all …]
|