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:
parent
479929b06c
commit
4b96d9c813
2 changed files with 14 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue