Kernel/ProcFS: Get unveil stats instead of FDs stats for unveil data

It was accidentally using `procfs_get_fds_stats` instead of
`procfs_get_unveil_stats`.
This commit is contained in:
Luke 2021-08-14 06:09:39 +01:00 committed by Gunnar Beutner
parent 0d21a1307e
commit e06660d33c
Notes: sideshowbarker 2024-07-18 07:00:16 +09:00

View File

@ -544,7 +544,7 @@ KResult ProcFSProcessPropertyInode::try_to_acquire_data(Process& process, KBuffe
VERIFY(m_parent_sub_directory_type == SegmentedProcFSIndex::ProcessSubDirectory::Reserved);
switch (m_possible_data.property_type) {
case SegmentedProcFSIndex::MainProcessProperty::Unveil:
return process.procfs_get_fds_stats(builder);
return process.procfs_get_unveil_stats(builder);
case SegmentedProcFSIndex::MainProcessProperty::Pledge:
return process.procfs_get_pledge_stats(builder);
case SegmentedProcFSIndex::MainProcessProperty::FileDescriptions: