mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
Kernel/ProcFS: Make various things superuser-only once again
File and directory permissions regressed with the recent ProcFS changes. This patch restores the superuser-only permissions where appropriate.
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 07:59:48 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/07141434e0e
@@ -143,6 +143,7 @@ public:
|
||||
virtual gid_t owner_group() const override { return m_associated_process ? m_associated_process->gid() : 0; }
|
||||
virtual KResult refresh_data(FileDescription&) const override;
|
||||
virtual RefPtr<ProcFSExposedComponent> lookup(StringView name) override;
|
||||
virtual mode_t required_mode() const override { return 0500; }
|
||||
|
||||
virtual void prepare_for_deletion() override;
|
||||
|
||||
@@ -234,6 +235,8 @@ public:
|
||||
return process->gid();
|
||||
}
|
||||
|
||||
virtual mode_t required_mode() const override { return 0400; }
|
||||
|
||||
protected:
|
||||
ProcFSProcessInformation(StringView name, const ProcFSProcessDirectory& process_directory)
|
||||
: ProcFSExposedComponent(name)
|
||||
|
||||
Reference in New Issue
Block a user