1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:57:35 +00:00

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.
This commit is contained in:
Liav A 2020-12-25 19:01:19 +02:00 committed by Andreas Kling
parent 092a13211a
commit 18e77aa285
17 changed files with 50 additions and 0 deletions

View file

@ -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;