mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 11:09:18 +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
Notes:
sideshowbarker
2024-07-19 00:31:49 +09:00
Author: https://github.com/supercomputer7
Commit: 18e77aa285
Pull-request: https://github.com/SerenityOS/serenity/pull/4527
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bugaevc
17 changed files with 50 additions and 0 deletions
|
@ -48,6 +48,9 @@ public:
|
|||
|
||||
virtual String absolute_path(const FileDescription&) const override;
|
||||
|
||||
// ^Device
|
||||
virtual mode_t required_mode() const override { return 0640; }
|
||||
|
||||
private:
|
||||
// ^CharacterDevice
|
||||
virtual KResultOr<size_t> read(FileDescription&, size_t, UserOrKernelBuffer&, size_t) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue