mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-09 22:56:35 +00:00
kern: fix capability check for thread priorities
This commit is contained in:
parent
d3eb1268bc
commit
3fc695aff8
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,9 @@ namespace ams::kern {
|
|||
R_UNLESS(m_core_mask != 0, svc::ResultInvalidArgument());
|
||||
R_UNLESS(m_priority_mask != 0, svc::ResultInvalidArgument());
|
||||
|
||||
/* Processes must not have access to kernel thread priorities. */
|
||||
R_UNLESS((m_priority_mask & 0xF) == 0, svc::ResultInvalidArgument());
|
||||
|
||||
return ResultSuccess();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue