summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/genetlink.h
diff options
context:
space:
mode:
authorJohannes Berg2013-11-19 15:19:33 +0100
committerDavid S. Miller2013-11-19 22:39:05 +0100
commit2ecf7536b2787580616d23b6507005d930975ca0 (patch)
tree050b07aaf96d86a83ed42c34511a3f28e1c0d1d4 /include/uapi/linux/genetlink.h
parentdrop_monitor/genetlink: use proper genetlink multicast APIs (diff)
downloadkernel-qcow2-linux-2ecf7536b2787580616d23b6507005d930975ca0.tar.gz
kernel-qcow2-linux-2ecf7536b2787580616d23b6507005d930975ca0.tar.xz
kernel-qcow2-linux-2ecf7536b2787580616d23b6507005d930975ca0.zip
quota/genetlink: use proper genetlink multicast APIs
The quota code is abusing the genetlink API and is using its family ID as the multicast group ID, which is invalid and may belong to somebody else (and likely will.) Make the quota code use the correct API, but since this is already used as-is by userspace, reserve a family ID for this code and also reserve that group ID to not break userspace assumptions. Acked-by: Jan Kara <jack@suse.cz> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/genetlink.h')
-rw-r--r--include/uapi/linux/genetlink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/genetlink.h b/include/uapi/linux/genetlink.h
index c880a417d8a9..1af72d8228e0 100644
--- a/include/uapi/linux/genetlink.h
+++ b/include/uapi/linux/genetlink.h
@@ -27,6 +27,7 @@ struct genlmsghdr {
*/
#define GENL_ID_GENERATE 0
#define GENL_ID_CTRL NLMSG_MIN_TYPE
+#define GENL_ID_VFS_DQUOT (NLMSG_MIN_TYPE + 1)
/**************************************************************************
* Controller