svn commit: r247676 - head/tools/regression/capsicum/syscalls
Pawel Jakub Dawidek
pjd at FreeBSD.org
Sat Mar 2 23:40:43 UTC 2013
Author: pjd
Date: Sat Mar 2 23:40:42 2013
New Revision: 247676
URL: http://svnweb.freebsd.org/changeset/base/247676
Log:
If all ioctls are allowed, cap_ioctls_get(2) will return CAP_IOCTLS_ALL.
Update regression tests.
Modified:
head/tools/regression/capsicum/syscalls/cap_ioctls_limit.c
Modified: head/tools/regression/capsicum/syscalls/cap_ioctls_limit.c
==============================================================================
--- head/tools/regression/capsicum/syscalls/cap_ioctls_limit.c Sat Mar 2 22:41:06 2013 (r247675)
+++ head/tools/regression/capsicum/syscalls/cap_ioctls_limit.c Sat Mar 2 23:40:42 2013 (r247676)
@@ -51,7 +51,7 @@ ioctl_tests_0(int fd)
{
unsigned long cmds[2];
- CHECK(cap_ioctls_get(fd, NULL, 0) == INT_MAX);
+ CHECK(cap_ioctls_get(fd, NULL, 0) == CAP_IOCTLS_ALL);
CHECK(fcntl(fd, F_GETFD) == 0);
CHECK(ioctl(fd, FIOCLEX) == 0);
@@ -241,7 +241,7 @@ ioctl_tests_recv_0(int sock)
CHECK(descriptor_recv(sock, &fd) == 0);
- CHECK(cap_ioctls_get(fd, NULL, 0) == INT_MAX);
+ CHECK(cap_ioctls_get(fd, NULL, 0) == CAP_IOCTLS_ALL);
CHECK(fcntl(fd, F_GETFD) == 0);
CHECK(ioctl(fd, FIOCLEX) == 0);
More information about the svn-src-all
mailing list