mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-02 16:25:34 +03:00
Kernel: Allow read access sparingly to some /sys/kernel directory nodes
Those nodes are not exposing any sensitive information so there's no harm in exposing them.
This commit is contained in:
parent
1ca0ac5207
commit
95d8aa2982
Notes:
sideshowbarker
2024-07-17 18:38:54 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/95d8aa2982 Pull-request: https://github.com/SerenityOS/serenity/pull/16029 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/kleinesfilmroellchen ✅ Reviewed-by: https://github.com/linusg
@ -23,6 +23,8 @@ public:
|
||||
private:
|
||||
SysFSDiskUsage(SysFSDirectory const& parent_directory);
|
||||
virtual ErrorOr<void> try_generate(KBufferBuilder& builder) override;
|
||||
|
||||
virtual bool is_readable_by_jailed_processes() const override { return true; }
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -23,6 +23,8 @@ public:
|
||||
private:
|
||||
explicit SysFSInterrupts(SysFSDirectory const& parent_directory);
|
||||
virtual ErrorOr<void> try_generate(KBufferBuilder& builder) override;
|
||||
|
||||
virtual bool is_readable_by_jailed_processes() const override { return true; }
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -23,6 +23,8 @@ public:
|
||||
private:
|
||||
explicit SysFSKeymap(SysFSDirectory const& parent_directory);
|
||||
virtual ErrorOr<void> try_generate(KBufferBuilder& builder) override;
|
||||
|
||||
virtual bool is_readable_by_jailed_processes() const override { return true; }
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -23,6 +23,8 @@ public:
|
||||
private:
|
||||
explicit SysFSMemoryStatus(SysFSDirectory const& parent_directory);
|
||||
virtual ErrorOr<void> try_generate(KBufferBuilder& builder) override;
|
||||
|
||||
virtual bool is_readable_by_jailed_processes() const override { return true; }
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -22,6 +22,8 @@ public:
|
||||
private:
|
||||
explicit SysFSNetworkARPStats(SysFSDirectory const&);
|
||||
virtual ErrorOr<void> try_generate(KBufferBuilder& builder) override;
|
||||
|
||||
virtual bool is_readable_by_jailed_processes() const override { return true; }
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -22,6 +22,8 @@ public:
|
||||
private:
|
||||
explicit SysFSNetworkAdaptersStats(SysFSDirectory const&);
|
||||
virtual ErrorOr<void> try_generate(KBufferBuilder& builder) override;
|
||||
|
||||
virtual bool is_readable_by_jailed_processes() const override { return true; }
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -22,6 +22,8 @@ public:
|
||||
private:
|
||||
explicit SysFSLocalNetStats(SysFSDirectory const&);
|
||||
virtual ErrorOr<void> try_generate(KBufferBuilder& builder) override;
|
||||
|
||||
virtual bool is_readable_by_jailed_processes() const override { return true; }
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -22,6 +22,8 @@ public:
|
||||
private:
|
||||
explicit SysFSNetworkRouteStats(SysFSDirectory const&);
|
||||
virtual ErrorOr<void> try_generate(KBufferBuilder& builder) override;
|
||||
|
||||
virtual bool is_readable_by_jailed_processes() const override { return true; }
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -22,6 +22,8 @@ public:
|
||||
private:
|
||||
explicit SysFSNetworkTCPStats(SysFSDirectory const&);
|
||||
virtual ErrorOr<void> try_generate(KBufferBuilder& builder) override;
|
||||
|
||||
virtual bool is_readable_by_jailed_processes() const override { return true; }
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -22,6 +22,8 @@ public:
|
||||
private:
|
||||
explicit SysFSNetworkUDPStats(SysFSDirectory const&);
|
||||
virtual ErrorOr<void> try_generate(KBufferBuilder& builder) override;
|
||||
|
||||
virtual bool is_readable_by_jailed_processes() const override { return true; }
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -23,6 +23,8 @@ public:
|
||||
private:
|
||||
explicit SysFSOverallProcesses(SysFSDirectory const& parent_directory);
|
||||
virtual ErrorOr<void> try_generate(KBufferBuilder& builder) override;
|
||||
|
||||
virtual bool is_readable_by_jailed_processes() const override { return true; }
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -23,6 +23,8 @@ public:
|
||||
private:
|
||||
explicit SysFSSystemStatistics(SysFSDirectory const& parent_directory);
|
||||
virtual ErrorOr<void> try_generate(KBufferBuilder& builder) override;
|
||||
|
||||
virtual bool is_readable_by_jailed_processes() const override { return true; }
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -22,6 +22,8 @@ public:
|
||||
private:
|
||||
explicit SysFSUptime(SysFSDirectory const& parent_directory);
|
||||
virtual ErrorOr<void> try_generate(KBufferBuilder& builder) override;
|
||||
|
||||
virtual bool is_readable_by_jailed_processes() const override { return true; }
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user