1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 16:45:09 +00:00

ProcFS: /proc/sys entries should always be regular 644 files.

This commit is contained in:
Andreas Kling 2019-02-10 06:10:01 +01:00
parent 5bd363c4bb
commit cc04ba9cc9

View file

@ -754,6 +754,11 @@ InodeMetadata ProcFSInode::metadata() const
return metadata;
}
if (proc_parent_directory == PDI_Root_sys) {
metadata.mode = 00100644;
return metadata;
}
switch (proc_file_type) {
case FI_Root_self:
case FI_PID_cwd: