kernel: Make /dev/mouse read-write only for root
This commit is contained in:
parent
6593f9241b
commit
9c1e275f34
@ -6,7 +6,7 @@ Result<void> MouseDevice::create()
|
|||||||
{
|
{
|
||||||
auto device = TRY(make_shared<MouseDevice>());
|
auto device = TRY(make_shared<MouseDevice>());
|
||||||
s_mouse_device = device;
|
s_mouse_device = device;
|
||||||
return DeviceRegistry::register_special_device(DeviceRegistry::Input, 0, device);
|
return DeviceRegistry::register_special_device(DeviceRegistry::Input, 0, device, 0600);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result<usize> MouseDevice::read(u8* buf, usize, usize length) const
|
Result<usize> MouseDevice::read(u8* buf, usize, usize length) const
|
||||||
|
Loading…
Reference in New Issue
Block a user