mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05: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
13 changed files with 26 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue