mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00
Kernel: Remove "has made executable exception for dynamic loader" flag
As Idan pointed out, this flag is actually not needed, since we don't allow transitioning from previously-executable to writable anyway.
This commit is contained in:
parent
5b37c0a71a
commit
e55ef70e5e
2 changed files with 4 additions and 32 deletions
|
@ -50,8 +50,6 @@ class Region final
|
|||
|
||||
MAKE_SLAB_ALLOCATED(Region)
|
||||
public:
|
||||
// 76543210
|
||||
// eXWR xwr
|
||||
enum Access : u8 {
|
||||
Read = 1,
|
||||
Write = 2,
|
||||
|
@ -59,7 +57,6 @@ public:
|
|||
HasBeenReadable = 16,
|
||||
HasBeenWritable = 32,
|
||||
HasBeenExecutable = 64,
|
||||
HasMadeExecutableExceptionForDynamicLoader = 128,
|
||||
};
|
||||
|
||||
static NonnullOwnPtr<Region> create_user_accessible(Process*, const Range&, NonnullRefPtr<VMObject>, size_t offset_in_vmobject, const StringView& name, u8 access, bool cacheable, bool shared);
|
||||
|
@ -78,13 +75,6 @@ public:
|
|||
bool has_been_writable() const { return m_access & Access::HasBeenWritable; }
|
||||
bool has_been_executable() const { return m_access & Access::HasBeenExecutable; }
|
||||
|
||||
bool has_made_executable_exception_for_dynamic_loader() const { return m_access & Access::HasMadeExecutableExceptionForDynamicLoader; }
|
||||
void set_has_made_executable_exception_for_dynamic_loader()
|
||||
{
|
||||
ASSERT(!has_made_executable_exception_for_dynamic_loader());
|
||||
m_access |= Access::HasMadeExecutableExceptionForDynamicLoader;
|
||||
}
|
||||
|
||||
bool is_cacheable() const { return m_cacheable; }
|
||||
const String& name() const { return m_name; }
|
||||
unsigned access() const { return m_access; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue