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.
CRs-Fixed: 1008025
Bug: 24140541
(cherry picked from commit 246ca10daf8ac95b7081cebe7e8c06012ced9726)
Change-Id: I33fbf18dbc10a62efdf87ba14d57682d5eb92353
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);