mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:15:06 +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
|
@ -28,6 +28,11 @@
|
|||
#define O_DIRECT 04000000
|
||||
#define O_NOFOLLOW_NOERROR 0x4000000
|
||||
|
||||
#define MS_NODEV 1
|
||||
#define MS_NOEXEC 2
|
||||
#define MS_NOSUID 4
|
||||
#define MS_BIND 8
|
||||
|
||||
class Custody;
|
||||
class Device;
|
||||
class FileDescription;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue