summaryrefslogtreecommitdiff
path: root/Kernel/Devices/RandomDevice.h
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2020-12-25 19:01:19 +0200
committerAndreas Kling <kling@serenityos.org>2020-12-27 23:07:44 +0100
commit18e77aa28535d52eb6be9c2791a6d217433b1b68 (patch)
treeb63d9024593e11667884c8d9074aeb55bc20e823 /Kernel/Devices/RandomDevice.h
parent092a13211a4216c19c08280bd5e5803e1030f087 (diff)
downloadserenity-18e77aa28535d52eb6be9c2791a6d217433b1b68.zip
Kernel: Add a method to determine the desired permissions of a Device
This method will be used later in DevFS, to set the appropriate permissions for each device node.
Diffstat (limited to 'Kernel/Devices/RandomDevice.h')
-rw-r--r--Kernel/Devices/RandomDevice.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Kernel/Devices/RandomDevice.h b/Kernel/Devices/RandomDevice.h
index c419934107..fbf5bbaf7b 100644
--- a/Kernel/Devices/RandomDevice.h
+++ b/Kernel/Devices/RandomDevice.h
@@ -36,6 +36,9 @@ public:
RandomDevice();
virtual ~RandomDevice() override;
+ // ^Device
+ virtual mode_t required_mode() const override { return 0666; }
+
private:
// ^CharacterDevice
virtual KResultOr<size_t> read(FileDescription&, size_t, UserOrKernelBuffer&, size_t) override;