summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/serenity.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-05 12:16:30 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-05 12:23:39 +0100
commite87eac92730f1cc55d7a44f8bb6331b4a8e33535 (patch)
treec8a17aba1bf677a5fc6059b018baa8f861fd1670 /Userland/Libraries/LibC/serenity.cpp
parent4df3a34bc29a4fde57bd0d1ae408a3d094c10b62 (diff)
downloadserenity-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/serenity.cpp')
-rw-r--r--Userland/Libraries/LibC/serenity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/serenity.cpp b/Userland/Libraries/LibC/serenity.cpp
index 319975c653..8899a2b7df 100644
--- a/Userland/Libraries/LibC/serenity.cpp
+++ b/Userland/Libraries/LibC/serenity.cpp
@@ -24,10 +24,10 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <Kernel/API/Syscall.h>
#include <errno.h>
#include <serenity.h>
#include <string.h>
+#include <syscall.h>
extern "C" {