Skip to content

Commit b08958d

Browse files
committed
randomenv: remove /proc/ access
The data we try and gather in this file is on a best-effort basis, however in this instance, for certain users, it's just producing spam. This could (possibly?) be solved with further snap/apparmor configuration, however given that no-one is actively working on packaging, it seems easier to drop this (one of many), sources of dynamic environment data. Closes bitcoin-core/packaging#115.
1 parent 9a7206a commit b08958d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/randomenv.cpp

-12
Original file line numberDiff line numberDiff line change
@@ -222,18 +222,6 @@ void RandAddDynamicEnv(CSHA512& hasher)
222222
if (getrusage(RUSAGE_SELF, &usage) == 0) hasher << usage;
223223
#endif
224224

225-
#ifdef __linux__
226-
AddFile(hasher, "/proc/diskstats");
227-
AddFile(hasher, "/proc/vmstat");
228-
AddFile(hasher, "/proc/schedstat");
229-
AddFile(hasher, "/proc/zoneinfo");
230-
AddFile(hasher, "/proc/meminfo");
231-
AddFile(hasher, "/proc/softirqs");
232-
AddFile(hasher, "/proc/stat");
233-
AddFile(hasher, "/proc/self/schedstat");
234-
AddFile(hasher, "/proc/self/status");
235-
#endif
236-
237225
#ifdef HAVE_SYSCTL
238226
# ifdef CTL_KERN
239227
# if defined(KERN_PROC) && defined(KERN_PROC_ALL)

0 commit comments

Comments
 (0)