Home
last modified time | relevance | path

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

/freebsd/tools/regression/security/cap_test/
H A Dcap_test_relative.c59 CHECK_SYSCALL_SUCCEEDS(cap_getrights, etc, &rights); in test_relative()
71 CHECK_SYSCALL_SUCCEEDS(openat, etc, "/etc/passwd", O_RDONLY); in test_relative()
72 CHECK_SYSCALL_SUCCEEDS(openat, AT_FDCWD, "/etc/passwd", O_RDONLY); in test_relative()
73 CHECK_SYSCALL_SUCCEEDS(openat, etc, "passwd", O_RDONLY); in test_relative()
74 CHECK_SYSCALL_SUCCEEDS(openat, etc, "../etc/passwd", O_RDONLY); in test_relative()
81 CHECK_SYSCALL_SUCCEEDS(openat, etc_cap_ro, "passwd", O_RDONLY); in test_relative()
82 CHECK_SYSCALL_SUCCEEDS(openat, etc_cap_base, "passwd", O_RDONLY); in test_relative()
83 CHECK_SYSCALL_SUCCEEDS(openat, etc_cap_all, "passwd", O_RDONLY); in test_relative()
93 CHECK_SYSCALL_SUCCEEDS(openat, etc_cap_all, "../etc/passwd", O_RDONLY); in test_relative()
98 CHECK_SYSCALL_SUCCEEDS(cap_getrights, etc_cap_base, &rights); in test_relative()
[all …]
H A Dcap_test_capmode.c112 CHECK_SYSCALL_SUCCEEDS(close, fd_close); in test_capmode()
113 CHECK_SYSCALL_SUCCEEDS(dup, fd_file); in test_capmode()
114 CHECK_SYSCALL_SUCCEEDS(fstat, fd_file, &sb); in test_capmode()
115 CHECK_SYSCALL_SUCCEEDS(lseek, fd_file, 0, SEEK_SET); in test_capmode()
116 CHECK_SYSCALL_SUCCEEDS(msync, &fd_file, 8192, MS_ASYNC); in test_capmode()
117 CHECK_SYSCALL_SUCCEEDS(profil, NULL, 0, 0, 0); in test_capmode()
118 CHECK_SYSCALL_SUCCEEDS(read, fd_file, &ch, sizeof(ch)); in test_capmode()
119 CHECK_SYSCALL_SUCCEEDS(recvfrom, fd_socket, NULL, 0, 0, NULL, NULL); in test_capmode()
120 CHECK_SYSCALL_SUCCEEDS(setuid, getuid()); in test_capmode()
121 CHECK_SYSCALL_SUCCEEDS(write, fd_file, &ch, sizeof(ch)); in test_capmode()
H A Dcap_test.h67 #define CHECK_SYSCALL_SUCCEEDS(syscall, ...) do { \ macro
120 CHECK_SYSCALL_SUCCEEDS(cap_getrights, to, &_rights); \
H A Dcap_test_fcntl.c104 CHECK_SYSCALL_SUCCEEDS(fcntl, f.f_fd, F_GETFL, 0); in test_fcntl()