kernel/vm: Allow B_CLONEABLE_AREA flag to be added through set_area_protection.

This commit is contained in:
Augustin Cavalier 2023-12-23 22:28:57 -05:00
parent 0bb43cbf5a
commit 04f148c74a

View File

@ -6551,7 +6551,7 @@ _user_get_next_area_info(team_id team, ssize_t* userCookie, area_info* userInfo)
status_t
_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 vm_set_area_protection(VMAddressSpace::CurrentID(), area,