If all ioctls are allowed, cap_ioctls_get(2) will return CAP_IOCTLS_ALL.

Update regression tests.
This commit is contained in:
Pawel Jakub Dawidek 2013-03-02 23:40:42 +00:00
parent 27eae7e9ad
commit 2328a74aa8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=247676

View File

@ -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);