diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-05 12:16:30 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-05 12:23:39 +0100 |
commit | e87eac92730f1cc55d7a44f8bb6331b4a8e33535 (patch) | |
tree | c8a17aba1bf677a5fc6059b018baa8f861fd1670 /Userland/Libraries/LibC/sys/select.cpp | |
parent | 4df3a34bc29a4fde57bd0d1ae408a3d094c10b62 (diff) | |
download | serenity-e87eac92730f1cc55d7a44f8bb6331b4a8e33535.zip |
Userland: Add LibSystem and funnel all syscalls through it
This achieves two things:
- Programs can now intentionally perform arbitrary syscalls by calling
syscall(). This allows us to work on things like syscall fuzzing.
- It restricts the ability of userspace to make syscalls to a single
4KB page of code. In order to call the kernel directly, an attacker
must now locate this page and call through it.
Diffstat (limited to 'Userland/Libraries/LibC/sys/select.cpp')
-rw-r--r-- | Userland/Libraries/LibC/sys/select.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/sys/select.cpp b/Userland/Libraries/LibC/sys/select.cpp index 85c5b03d43..dfc039d12a 100644 --- a/Userland/Libraries/LibC/sys/select.cpp +++ b/Userland/Libraries/LibC/sys/select.cpp @@ -24,11 +24,11 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <Kernel/API/Syscall.h> #include <errno.h> #include <stdio.h> #include <sys/select.h> #include <sys/time.h> +#include <syscall.h> extern "C" { |