summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/sched.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/sched.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/sched.cpp')
-rw-r--r--Userland/Libraries/LibC/sched.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/sched.cpp b/Userland/Libraries/LibC/sched.cpp
index 4e3643bd01..d5139cb1c5 100644
--- a/Userland/Libraries/LibC/sched.cpp
+++ b/Userland/Libraries/LibC/sched.cpp
@@ -24,9 +24,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <Kernel/API/Syscall.h>
#include <errno.h>
#include <sched.h>
+#include <syscall.h>
extern "C" {