1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

Kernel: Move mmap validation functions to Process

This commit is contained in:
int16 2022-03-10 11:53:40 +11:00 committed by Andreas Kling
parent 479929b06c
commit 4b96d9c813
2 changed files with 14 additions and 11 deletions

View file

@ -524,6 +524,9 @@ public:
ErrorOr<void> require_promise(Pledge);
ErrorOr<void> require_no_promises() const;
bool validate_mmap_prot(int prot, bool map_stack, bool map_anonymous, Memory::Region const* region = nullptr) const;
bool validate_inode_mmap_prot(int prot, const Inode& inode, bool map_shared) const;
private:
friend class MemoryManager;
friend class Scheduler;