mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
If all ioctls are allowed, cap_ioctls_get(2) will return CAP_IOCTLS_ALL.
Update regression tests.
This commit is contained in:
parent
27eae7e9ad
commit
2328a74aa8
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue