mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:18:12 +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:
parent
092a13211a
commit
18e77aa285
17 changed files with 50 additions and 0 deletions
|
@ -53,6 +53,9 @@ public:
|
|||
virtual KResultOr<size_t> write(FileDescription&, size_t, const UserOrKernelBuffer&, size_t) override;
|
||||
virtual bool can_write(const FileDescription&, size_t) const override;
|
||||
|
||||
// ^Device
|
||||
virtual mode_t required_mode() const override { return 0600; }
|
||||
|
||||
protected:
|
||||
StorageDevice(const StorageController&, int, int, size_t, size_t);
|
||||
// ^DiskDevice
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue