diff options
author | Liav A <liavalb@gmail.com> | 2020-12-25 19:01:19 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-27 23:07:44 +0100 |
commit | 18e77aa28535d52eb6be9c2791a6d217433b1b68 (patch) | |
tree | b63d9024593e11667884c8d9074aeb55bc20e823 /Kernel/Devices/RandomDevice.h | |
parent | 092a13211a4216c19c08280bd5e5803e1030f087 (diff) | |
download | serenity-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.h | 3 |
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; |