mirror of
https://review.haiku-os.org/haiku
synced 2025-02-22 21:48:35 +01:00
kernel/cpu: Only root can enable or disable CPUs.
This commit is contained in:
parent
6f0aa00c6b
commit
05901d8963
@ -367,6 +367,8 @@ _user_set_cpu_enabled(int32 cpu, bool enabled)
|
||||
{
|
||||
int32 i, count;
|
||||
|
||||
if (geteuid() != 0)
|
||||
return B_PERMISSION_DENIED;
|
||||
if (cpu < 0 || cpu >= smp_get_num_cpus())
|
||||
return B_BAD_VALUE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user