mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 03:42:04 +01: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=247676
@ -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 New Issue
Block a user