QortalOS Brooklyn for Raspberry Pi 4
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
502 B

#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/grsecurity.h>
#include <linux/grinternal.h>
#include <linux/errno.h>
void
gr_log_forkfail(const int retval)
{
#ifdef CONFIG_GRKERNSEC_FORKFAIL
if (grsec_enable_forkfail && (retval == -EAGAIN || retval == -ENOMEM)) {
switch (retval) {
case -EAGAIN:
gr_log_str(GR_DONT_AUDIT, GR_FAILFORK_MSG, "EAGAIN");
break;
case -ENOMEM:
gr_log_str(GR_DONT_AUDIT, GR_FAILFORK_MSG, "ENOMEM");
break;
}
}
#endif
return;
}