mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 00:48:11 +00:00
ProcFS: /proc/sys entries should always be regular 644 files.
This commit is contained in:
parent
5bd363c4bb
commit
cc04ba9cc9
1 changed files with 5 additions and 0 deletions
|
@ -754,6 +754,11 @@ InodeMetadata ProcFSInode::metadata() const
|
||||||
return metadata;
|
return metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (proc_parent_directory == PDI_Root_sys) {
|
||||||
|
metadata.mode = 00100644;
|
||||||
|
return metadata;
|
||||||
|
}
|
||||||
|
|
||||||
switch (proc_file_type) {
|
switch (proc_file_type) {
|
||||||
case FI_Root_self:
|
case FI_Root_self:
|
||||||
case FI_PID_cwd:
|
case FI_PID_cwd:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue