|
@@ -115,6 +115,7 @@
|
|
|
#include <net/iw_handler.h>
|
|
|
#endif /* CONFIG_NET_RADIO */
|
|
|
#include <asm/current.h>
|
|
|
+#include <linux/audit.h>
|
|
|
|
|
|
/*
|
|
|
* The list of packet types we will receive (as opposed to discard)
|
|
@@ -2120,6 +2121,12 @@ void dev_set_promiscuity(struct net_device *dev, int inc)
|
|
|
printk(KERN_INFO "device %s %s promiscuous mode\n",
|
|
|
dev->name, (dev->flags & IFF_PROMISC) ? "entered" :
|
|
|
"left");
|
|
|
+ audit_log(current->audit_context, GFP_ATOMIC,
|
|
|
+ AUDIT_ANOM_PROMISCUOUS,
|
|
|
+ "dev=%s prom=%d old_prom=%d auid=%u",
|
|
|
+ dev->name, (dev->flags & IFF_PROMISC),
|
|
|
+ (old_flags & IFF_PROMISC),
|
|
|
+ audit_get_loginuid(current->audit_context));
|
|
|
}
|
|
|
}
|
|
|
|