mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-24 04:12:21 +00:00
Increase the number of open files limit for the sandboxed process to the maximum allowed in the system. The maximum is obtained by reading the /proc/sys/fs/nr_open sysctl file, and the setting is done using the setrlimit syscall. Failure to read or parse the nr_open file, or to set the rlimit results in a panic. Signed-off-by: Ricardo Koller <ricarkol@gmail.com>