summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/ioctl.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-07-31 00:17:25 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-31 00:17:25 +0200
commit292cd53192e019cbc3b860bfcad99972cff2a29b (patch)
tree98ea9df562236921e0d70d3271d428107493870f /Kernel/Syscalls/ioctl.cpp
parentbe7add690d3caa622ca2fdba96a00f4127229648 (diff)
downloadserenity-292cd53192e019cbc3b860bfcad99972cff2a29b.zip
Kernel: Remove SmapDisabler in sys$ioctl()
Use copy_{to,from}_user() in the various File::ioctl() implementations instead of disabling SMAP wholesale in sys$ioctl(). This patch does not port IPv4Socket::ioctl() to those API's since that will be more involved. That function now creates a local SmapDisabler.
Diffstat (limited to 'Kernel/Syscalls/ioctl.cpp')
-rw-r--r--Kernel/Syscalls/ioctl.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Kernel/Syscalls/ioctl.cpp b/Kernel/Syscalls/ioctl.cpp
index 140997e177..52af998816 100644
--- a/Kernel/Syscalls/ioctl.cpp
+++ b/Kernel/Syscalls/ioctl.cpp
@@ -34,7 +34,6 @@ int Process::sys$ioctl(int fd, unsigned request, FlatPtr arg)
auto description = file_description(fd);
if (!description)
return -EBADF;
- SmapDisabler disabler;
return description->file().ioctl(*description, request, arg);
}