mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-01-30 23:02:18 +00:00
2a709f28fa
* 0day explit mitigation * Memory corruption prevention * Privilege escalation prevention * Buffer over flow prevention * File System corruption defense * Thread escape prevention This may very well be the most intensive inclusion to BrooklynR. This will not be part of an x86 suite nor it will be released as tool kit. The security core toolkit will remain part of kernel base.
49 lines
777 B
C
49 lines
777 B
C
#include <linux/kernel.h>
|
|
#include <linux/sched.h>
|
|
#include <linux/mm.h>
|
|
#include <linux/mman.h>
|
|
#include <linux/module.h>
|
|
#include <linux/grinternal.h>
|
|
|
|
void gr_handle_msr_write(void)
|
|
{
|
|
gr_log_noargs(GR_DONT_AUDIT, GR_MSRWRITE_MSG);
|
|
return;
|
|
}
|
|
EXPORT_SYMBOL_GPL(gr_handle_msr_write);
|
|
|
|
void
|
|
gr_handle_ioperm(void)
|
|
{
|
|
gr_log_noargs(GR_DONT_AUDIT, GR_IOPERM_MSG);
|
|
return;
|
|
}
|
|
|
|
void
|
|
gr_handle_iopl(void)
|
|
{
|
|
gr_log_noargs(GR_DONT_AUDIT, GR_IOPL_MSG);
|
|
return;
|
|
}
|
|
|
|
void
|
|
gr_handle_mem_readwrite(u64 from, u64 to)
|
|
{
|
|
gr_log_two_u64(GR_DONT_AUDIT, GR_MEM_READWRITE_MSG, from, to);
|
|
return;
|
|
}
|
|
|
|
void
|
|
gr_handle_vm86(void)
|
|
{
|
|
gr_log_noargs(GR_DONT_AUDIT, GR_VM86_MSG);
|
|
return;
|
|
}
|
|
|
|
void
|
|
gr_log_badprocpid(const char *entry)
|
|
{
|
|
gr_log_str(GR_DONT_AUDIT, GR_BADPROCPID_MSG, entry);
|
|
return;
|
|
}
|