kernel: Make /dev/mouse read-write only for root

This commit is contained in:
apio 2023-08-02 17:19:37 +02:00
parent 6593f9241b
commit 9c1e275f34
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -6,7 +6,7 @@ Result<void> MouseDevice::create()
{
auto device = TRY(make_shared<MouseDevice>());
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