mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-16 23:08:16 +00:00
fix(syscall_buffer): set dimension if page size not available
Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it>
This commit is contained in:
@@ -48,6 +48,7 @@ application::run_result application::configure_syscall_buffer_size()
|
|||||||
long page_size = getpagesize();
|
long page_size = getpagesize();
|
||||||
if(page_size <= 0)
|
if(page_size <= 0)
|
||||||
{
|
{
|
||||||
|
m_state->syscall_buffer_bytes_size = DEFAULT_BYTE_SIZE;
|
||||||
falco_logger::log(LOG_WARNING, "Unable to get the system page size through 'getpagesize()'. Try to use the default syscall buffer dimension: " + std::to_string(DEFAULT_BYTE_SIZE) + " bytes.\n");
|
falco_logger::log(LOG_WARNING, "Unable to get the system page size through 'getpagesize()'. Try to use the default syscall buffer dimension: " + std::to_string(DEFAULT_BYTE_SIZE) + " bytes.\n");
|
||||||
return run_result::ok();
|
return run_result::ok();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user