mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
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:
parent
68cba4fe27
commit
1b15425ea3
1 changed files with 1 additions and 0 deletions
|
@ -82,6 +82,7 @@
|
||||||
@{PROC}/meminfo r,
|
@{PROC}/meminfo r,
|
||||||
@{PROC}/stat r,
|
@{PROC}/stat r,
|
||||||
@{PROC}/cpuinfo r,
|
@{PROC}/cpuinfo r,
|
||||||
|
/sys/devices/system/cpu/ r,
|
||||||
/sys/devices/system/cpu/online r,
|
/sys/devices/system/cpu/online r,
|
||||||
|
|
||||||
# glibc's *printf protections read the maps file
|
# glibc's *printf protections read the maps file
|
||||||
|
|
Loading…
Add table
Reference in a new issue