kernel/vm: Allow B_CLONEABLE_AREA flag to be added through set_area_protection.
This commit is contained in:
@@ -6551,7 +6551,7 @@ _user_get_next_area_info(team_id team, ssize_t* userCookie, area_info* userInfo)
|
|||||||
status_t
|
status_t
|
||||||
_user_set_area_protection(area_id area, uint32 newProtection)
|
_user_set_area_protection(area_id area, uint32 newProtection)
|
||||||
{
|
{
|
||||||
if ((newProtection & ~B_USER_PROTECTION) != 0)
|
if ((newProtection & ~(B_USER_PROTECTION | B_CLONEABLE_AREA)) != 0)
|
||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
return vm_set_area_protection(VMAddressSpace::CurrentID(), area,
|
return vm_set_area_protection(VMAddressSpace::CurrentID(), area,
|
||||||
|
|||||||
Reference in New Issue
Block a user