1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

Kernel+LibC: Add O_EXEC, move exec permission checking to VFS::open()

O_EXEC is mentioned by POSIX, so let's have it. Currently, it is only used
inside the kernel to ensure the process has the right permissions when opening
an executable.
This commit is contained in:
Sergey Bugaev 2020-01-11 18:33:35 +03:00 committed by Andreas Kling
parent 4566c2d811
commit 2fcbb846fb
4 changed files with 7 additions and 4 deletions

View file

@ -15,6 +15,7 @@
#define O_RDONLY 0
#define O_WRONLY 1
#define O_RDWR 2
#define O_EXEC 4
#define O_CREAT 0100
#define O_EXCL 0200
#define O_NOCTTY 0400