Home
last modified time | relevance | path

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

/freebsd/contrib/capsicum-test/
H A Dcopy_file_range.cc79 EXPECT_NOTCAPABLE(copy_file_range(fd_in, NULL, fd_out, NULL, 8, 0)); in TEST_F()
80 EXPECT_NOTCAPABLE(copy_file_range(fd_in, &off_in, fd_out, NULL, 8, 0)); in TEST_F()
81 EXPECT_NOTCAPABLE(copy_file_range(fd_in, NULL, fd_out, &off_out, 8, 0)); in TEST_F()
82 EXPECT_NOTCAPABLE(copy_file_range(fd_in, &off_in, fd_out, &off_out, 8, 0)); in TEST_F()
85 EXPECT_NOTCAPABLE(copy_file_range(fd_in, &off_in, fd_out, NULL, 8, 0)); in TEST_F()
86 EXPECT_NOTCAPABLE(copy_file_range(fd_in, NULL, fd_out, &off_out, 8, 0)); in TEST_F()
87 EXPECT_NOTCAPABLE(copy_file_range(fd_in, &off_in, fd_out, &off_out, 8, 0)); in TEST_F()
102 EXPECT_NOTCAPABLE(copy_file_range(fd_in, NULL, fd_out, NULL, 8, 0)); in TEST_F()
103 EXPECT_NOTCAPABLE(copy_file_range(fd_in, &off_in, fd_out, NULL, 8, 0)); in TEST_F()
104 EXPECT_NOTCAPABLE(copy_file_range(fd_in, NULL, fd_out, &off_out, 8, 0)); in TEST_F()
[all …]
H A Dsocket.cc50 EXPECT_NOTCAPABLE(connect_(cap_sock_rw, (struct sockaddr *)&un, len)); in TEST()
75 EXPECT_NOTCAPABLE(bind_(cap_sock_rw, (struct sockaddr *)&un, len)); in TEST()
79 EXPECT_NOTCAPABLE(listen(cap_sock_rw, 3)); in TEST()
84 EXPECT_NOTCAPABLE(getsockname(cap_sock_rw, (struct sockaddr*)&un, &len)); in TEST()
86 EXPECT_NOTCAPABLE(setsockopt(cap_sock_rw, SOL_SOCKET, SO_DEBUG, &value, sizeof(value))); in TEST()
88 EXPECT_NOTCAPABLE(getsockopt(cap_sock_rw, SOL_SOCKET, SO_DEBUG, &value, &len)); in TEST()
105 EXPECT_NOTCAPABLE(accept(cap_sock_rw, (struct sockaddr *)&un, &len)); in TEST()
155 EXPECT_NOTCAPABLE(bind_(cap_sock_rw, (struct sockaddr *)&addr, len)); in TEST()
189 EXPECT_NOTCAPABLE(connect_(cap_sock_rw, (struct sockaddr *)&addr, len)); in TEST()
196 EXPECT_NOTCAPABLE(listen(cap_sock_rw, 3)); in TEST()
[all …]
H A Dioctl.cc29 EXPECT_NOTCAPABLE(ioctl(fd_no, FIONREAD, &bytes)); in TEST()
33 EXPECT_NOTCAPABLE(ioctl(fd_no, FIOCLEX, &one)); in TEST()
50 EXPECT_NOTCAPABLE(ioctl(fd, FIOCLEX, &one)); in TEST()
67 EXPECT_NOTCAPABLE(cap_ioctls_limit(fd, both_ioctls, 2)); in TEST()
160 EXPECT_NOTCAPABLE(ioctl(fd_clex, FIONREAD, &bytes)); in TEST()
162 EXPECT_NOTCAPABLE(ioctl(fd_nread, FIOCLEX, &one)); in TEST()
176 EXPECT_NOTCAPABLE(cap_ioctls_limit(fd_nread, both_ioctls, 2)); in TEST()
177 EXPECT_NOTCAPABLE(cap_ioctls_limit(fd_clex, both_ioctls, 2)); in TEST()
183 EXPECT_NOTCAPABLE(ioctl(fd, FIONREAD, &bytes)); in TEST()
184 EXPECT_NOTCAPABLE(ioctl(fd, FIOCLEX, &one)); in TEST()
H A Dcapability-fd-pair.cc36 EXPECT_NOTCAPABLE(sendfile_(cap_out_ro, cap_in_ro, &offset, 4)); in TEST()
37 EXPECT_NOTCAPABLE(sendfile_(cap_out_wo, cap_in_wo, &offset, 4)); in TEST()
82 EXPECT_NOTCAPABLE(tee(cap_in_wo, cap_out_rw, 4, SPLICE_F_NONBLOCK)); in TEST()
83 EXPECT_NOTCAPABLE(tee(cap_in_rw, cap_out_ro, 4, SPLICE_F_NONBLOCK)); in TEST()
137 EXPECT_NOTCAPABLE(splice(cap_in_ro, NULL, cap_out_wo_seek, NULL, 4, SPLICE_F_NONBLOCK)); in TEST()
138 EXPECT_NOTCAPABLE(splice(cap_in_wo, NULL, cap_out_wo_seek, NULL, 4, SPLICE_F_NONBLOCK)); in TEST()
139 EXPECT_NOTCAPABLE(splice(cap_in_ro_seek, NULL, cap_out_ro, NULL, 4, SPLICE_F_NONBLOCK)); in TEST()
140 EXPECT_NOTCAPABLE(splice(cap_in_ro_seek, NULL, cap_out_wo, NULL, 4, SPLICE_F_NONBLOCK)); in TEST()
180 EXPECT_NOTCAPABLE(vmsplice(cap_ro, &iov, 1, SPLICE_F_NONBLOCK)); in TEST()
H A Dsctp.cc46 EXPECT_NOTCAPABLE(sctp_sendmsg(cap_sock_ro, &byte, 1, in SctpClient()
49 EXPECT_NOTCAPABLE(sctp_sendmsg(cap_sock_rw, &byte, 1, in SctpClient()
99 EXPECT_NOTCAPABLE(bind(cap_sock_rw, (struct sockaddr *)&addr, len)); in TEST()
128 EXPECT_NOTCAPABLE(listen(cap_sock_rw, 3)); in TEST()
133 EXPECT_NOTCAPABLE(getsockname(cap_sock_rw, (struct sockaddr*)&addr, &len)); in TEST()
139 EXPECT_NOTCAPABLE(setsockopt(cap_sock_rw, IPPROTO_SCTP, SCTP_EVENTS, &events, sizeof(events))); in TEST()
141 EXPECT_NOTCAPABLE(getsockopt(cap_sock_rw, IPPROTO_SCTP, SCTP_EVENTS, &events, &len)); in TEST()
161 EXPECT_NOTCAPABLE(sctp_recvmsg(cap_sock_wo, buffer, sizeof(buffer), in TEST()
178 EXPECT_NOTCAPABLE(rc1); in TEST()
H A Dlinux.cc62 EXPECT_NOTCAPABLE(timerfd_settime(cap_fd_ro, 0, &ispec, NULL)); in TEST()
63 EXPECT_NOTCAPABLE(timerfd_settime(cap_fd_wo, 0, &ispec, &old_ispec)); in TEST()
68 EXPECT_NOTCAPABLE(timerfd_gettime(cap_fd_wo, &old_ispec)); in TEST()
153 EXPECT_NOTCAPABLE(read(cap_fd_none, &fdsi, sizeof(struct signalfd_siginfo))); in FORK_TEST()
154 EXPECT_NOTCAPABLE(read(cap_fd_sig, &fdsi, sizeof(struct signalfd_siginfo))); in FORK_TEST()
165 EXPECT_NOTCAPABLE(signalfd(cap_fd_none, &mask, 0)); in FORK_TEST()
166 EXPECT_NOTCAPABLE(signalfd(cap_fd_read, &mask, 0)); in FORK_TEST()
216 EXPECT_NOTCAPABLE(write(cap_ro, &u, sizeof(u))); in TEST()
237 EXPECT_NOTCAPABLE(read(cap_wo, &u, sizeof(u))); in TEST()
297 EXPECT_NOTCAPABLE(epoll_ctl(cap_epoll_ro, EPOLL_CTL_ADD, sock_fds[0], &eev)); in FORK_TEST()
[all …]
H A Dfcntl.cc140 EXPECT_NOTCAPABLE(fcntl(caps[ii], cmd, arg)); in CheckFcntl()
270 EXPECT_NOTCAPABLE(fcntl(fd, F_SETFL, fd_flag)); in TEST()
283 EXPECT_NOTCAPABLE(cap_fcntls_limit(fd, CAP_FCNTL_GETFL|CAP_FCNTL_SETFL)); in TEST()
349 EXPECT_NOTCAPABLE(fcntl(fd_set, F_GETFL, 0)); in TEST()
351 EXPECT_NOTCAPABLE(fcntl(fd_get, F_SETFL, fd_flag)); in TEST()
357 EXPECT_NOTCAPABLE(fcntl(fd, F_GETFL, 0)); in TEST()
358 EXPECT_NOTCAPABLE(fcntl(fd, F_SETFL, fd_flag)); in TEST()
389 EXPECT_NOTCAPABLE(fcntl(sock_set, F_GETOWN, 0)); in TEST()
391 EXPECT_NOTCAPABLE(fcntl(sock_get, F_SETOWN, owner)); in TEST()
399 EXPECT_NOTCAPABLE(cap_fcntls_limit(sock_get, CAP_FCNTL_GETOWN|CAP_FCNTL_SETOWN)); in TEST()
[all …]
H A Dmqueue.cc69 EXPECT_NOTCAPABLE(mq_notify_(cap_read_mq, &se));
70 EXPECT_NOTCAPABLE(mq_notify_(cap_write_mq, &se));
78 EXPECT_NOTCAPABLE(mq_timedsend_(cap_read_mq, message, strlen(message) + 1, kPriority, &ts));
86 EXPECT_NOTCAPABLE(mq_getattr_(cap_write_mq, &mqa));
90 EXPECT_NOTCAPABLE(mq_timedreceive_(cap_write_mq, buffer, mqa.mq_msgsize, &priority, &ts));
H A Dcapability-fd.cc254 EXPECT_NOTCAPABLE(cap_rights_limit(cap_cap_fd, &r_rsmapchmod)); in FORK_TEST()
274 EXPECT_NOTCAPABLE(write(cap_fd, "", 0)); in FORK_TEST()
278 EXPECT_NOTCAPABLE(write(cap_fd, "", 0)); in FORK_TEST()
388 EXPECT_NOTCAPABLE(file);
608 EXPECT_NOTCAPABLE(ret); in TryFileOps()
1124 EXPECT_NOTCAPABLE(mkdirat(cap_dfd_no_mkdir, "cap_subdir", 0755)); in TEST()
1129 EXPECT_NOTCAPABLE(unlinkat(cap_dfd_no_unlink, "cap_subdir", AT_REMOVEDIR)); in TEST()
1134 EXPECT_NOTCAPABLE(mkfifoat(cap_dfd_no_mkfifo, "cap_fifo", 0755)); in TEST()
1141 EXPECT_NOTCAPABLE(mknodat(cap_dfd_all, "cap_regular", S_IFREG|0755, 0)); in TEST()
1149 EXPECT_NOTCAPABLE(mknodat(cap_dfd_all, "cap_socket", S_IFSOCK|0755, 0)); in TEST()
[all …]
H A Dselect.cc74 EXPECT_NOTCAPABLE(ret);
95 EXPECT_NOTCAPABLE(ret);
H A Dcapsicum-test.h196 #define EXPECT_NOTCAPABLE(C) EXPECT_SYSCALL_FAIL(ENOTCAPABLE, C) macro
H A Dprocdesc.cc996 EXPECT_NOTCAPABLE(pdgetpid(cap_incapable, &other_pid)); in TEST()
997 EXPECT_NOTCAPABLE(pdkill(cap_incapable, SIGINT)); in TEST()
999 EXPECT_NOTCAPABLE(pdwait4_(cap_incapable, &status, 0, NULL)); in TEST()
H A Dopenat.cc122 EXPECT_NOTCAPABLE(openat(etc_cap, "passwd", O_RDONLY)); in FORK_TEST()