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>
This commit is contained in:
		
					parent
					
						
							
								e5dcecba01
							
						
					
				
			
			
				commit
				
					
						2ecf7536b2
					
				
			
		
					 3 changed files with 24 additions and 4 deletions
				
			
		|  | @ -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 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Johannes Berg
				Johannes Berg