abstractions/base: Allow sysconf(_SC_NPROCESSORS_CONF)

glibc implements this by doing a readdir() and filtering.
We already allowed sysconf(_SC_NPROCESSORS_ONLN), which is
basically a read from /sys/devices/system/cpu/online.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2017-04-12 18:35:10 +01:00
parent 68cba4fe27
commit 1b15425ea3

View file

@ -82,6 +82,7 @@
@{PROC}/meminfo r,
@{PROC}/stat r,
@{PROC}/cpuinfo r,
/sys/devices/system/cpu/ r,
/sys/devices/system/cpu/online r,
# glibc's *printf protections read the maps file