summaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/helper/ioctl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/helper/ioctl.cpp b/src/helper/ioctl.cpp
index 21a1ccb..8889efc 100644
--- a/src/helper/ioctl.cpp
+++ b/src/helper/ioctl.cpp
@@ -19,6 +19,13 @@ Exception::Exception(int fd, unsigned long op)
this->m_fd, this->m_op
);
break;
+ case EACCES:
+ this->m_code = Error::NoAccess;
+ this->m_what = std::format(
+ "ioctl({}, 0x{:x}) failed: Permission denied",
+ this->m_fd, this->m_op
+ );
+ break;
case EINVAL:
case ENOTTY:
this->m_code = Error::InvalidArgument;