Home
last modified time | relevance | path

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

/freebsd/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c63 #define CHECK_RESULT(syscall, rights_needed, succeeded) do { \ macro
140 CHECK_RESULT(read, CAP_READ, ssize >= 0); in try_file_ops()
143 CHECK_RESULT(write, CAP_WRITE, ssize >= 0); in try_file_ops()
146 CHECK_RESULT(lseek, CAP_SEEK, off >= 0); in try_file_ops()
150 CHECK_RESULT(pread, CAP_PREAD, ssize >= 0); in try_file_ops()
154 CHECK_RESULT(pwrite, CAP_PWRITE, ssize >= 0); in try_file_ops()
185 CHECK_RESULT(openat(O_CREATE | O_RDONLY), in try_file_ops()
191 CHECK_RESULT(openat(O_CREATE | O_WRONLY | O_APPEND), in try_file_ops()
196 CHECK_RESULT(openat(O_CREATE | O_RDWR | O_APPEND), in try_file_ops()
202 CHECK_RESULT(fsync, CAP_FSYNC, ret == 0); in try_file_ops()
[all …]