Listen to xt_quota2 kobject event for quota
Allow quota limit reached notification to originate from both
qlog and xt_quota2 subsystem. On 3.18 Kernel, modify xt_quota2
module to broadcast the Netlink notification via kobject.
Change-Id: Iaafe521e455d658ed8a2f95fb5114b029323d5ef
CRs-Fixed: 1008025
Bug: 24140541
diff --git a/server/NetlinkHandler.cpp b/server/NetlinkHandler.cpp
index ed21bff..19de240 100644
--- a/server/NetlinkHandler.cpp
+++ b/server/NetlinkHandler.cpp
@@ -116,7 +116,7 @@
}
}
- } else if (!strcmp(subsys, "qlog")) {
+ } else if (!strcmp(subsys, "qlog") || !strcmp(subsys, "xt_quota2")) {
const char *alertName = evt->findParam("ALERT_NAME");
const char *iface = evt->findParam("INTERFACE");
notifyQuotaLimitReached(alertName, iface);