mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00:00
Kernel+LibC: Implement a few mount flags
We now support these mount flags: * MS_NODEV: disallow opening any devices from this file system * MS_NOEXEC: disallow executing any executables from this file system * MS_NOSUID: ignore set-user-id bits on executables from this file system The fourth flag, MS_BIND, is defined, but currently ignored.
This commit is contained in:
parent
2fcbb846fb
commit
61c1106d9f
4 changed files with 19 additions and 5 deletions
|
@ -128,6 +128,11 @@ enum {
|
|||
#define X_OK 1
|
||||
#define F_OK 0
|
||||
|
||||
#define MS_NODEV 1
|
||||
#define MS_NOEXEC 2
|
||||
#define MS_NOSUID 4
|
||||
#define MS_BIND 8
|
||||
|
||||
/*
|
||||
* We aren't fully compliant (don't support policies, and don't have a wide
|
||||
* range of values), but we do have process priorities.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue