mirror of https://github.com/Qortal/Brooklyn
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.
15 lines
310 B
15 lines
310 B
#include <linux/kernel.h> |
|
#include <linux/grinternal.h> |
|
#include <linux/module.h> |
|
|
|
int gr_handle_new_usb(void) |
|
{ |
|
#ifdef CONFIG_GRKERNSEC_DENYUSB |
|
if (grsec_deny_new_usb) { |
|
printk(KERN_ALERT "grsec: denied insert of new USB device\n"); |
|
return 1; |
|
} |
|
#endif |
|
return 0; |
|
} |
|
EXPORT_SYMBOL_GPL(gr_handle_new_usb);
|
|
|