David Herrmann
b42be38b27
netlink: add API to retrieve all group memberships
...
This patch adds getsockopt(SOL_NETLINK, NETLINK_LIST_MEMBERSHIPS) to
retrieve all groups a socket is a member of. Currently, we have to use
getsockname() and look at the nl.nl_groups bitmask. However, this mask is
limited to 32 groups. Hence, similar to NETLINK_ADD_MEMBERSHIP and
NETLINK_DROP_MEMBERSHIP, this adds a separate sockopt to manager higher
groups IDs than 32.
This new NETLINK_LIST_MEMBERSHIPS option takes a pointer to __u32 and the
size of the array. The array is filled with the full membership-set of the
socket, and the required array size is returned in optlen. Hence,
user-space can retry with a properly sized array in case it was too small.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2015-06-21 10:18:18 -07:00
..
2015-06-09 09:39:49 +02:00
2013-09-08 14:34:22 -05:00
2015-03-31 22:14:04 +02:00
2015-06-18 13:05:09 +02:00
2015-04-13 20:08:38 +02:00
2015-04-21 16:16:02 -04:00
2015-01-27 09:34:59 -06:00
2013-03-13 15:21:48 -07:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2015-04-02 18:10:35 -03:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2013-04-26 16:08:16 +10:00
2014-01-08 13:05:13 -08:00
2012-10-13 10:46:48 +01:00
2014-10-14 16:06:45 -04:00
2015-06-15 15:53:50 -07:00
2012-10-13 10:46:48 +01:00
2014-07-01 10:48:05 -06:00
2015-05-06 08:03:19 +02:00
2014-04-22 21:42:27 -04:00
2013-01-21 15:40:35 -05:00
2013-03-20 13:23:21 -04:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2015-04-15 12:10:16 -04:00
2014-01-23 16:36:55 -08:00
2012-10-13 10:46:48 +01:00
2014-12-08 12:55:57 +08:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2014-08-05 16:35:54 -07:00
2015-06-11 00:36:37 -07:00
2013-12-03 15:35:52 +01:00
2015-03-25 15:07:05 +11:00
2012-10-13 10:46:48 +01:00
2014-08-08 15:57:31 -07:00
2014-01-17 11:12:06 +01:00
2013-08-03 10:40:23 -07:00
2015-04-16 14:08:49 -04:00
2013-07-27 20:24:36 +02:00
2015-04-12 21:25:13 -04:00
2012-10-13 10:46:48 +01:00
2014-07-22 16:37:43 +02:00
2013-06-11 02:51:03 -07:00
2013-11-28 18:26:30 -05:00
2014-11-07 10:21:44 -08:00
2012-10-13 10:46:48 +01:00
2015-03-23 22:12:09 -04:00
2014-12-05 23:56:55 +08:00
2014-08-27 22:59:39 -07:00
2015-06-15 17:23:03 -07:00
2015-05-13 15:43:00 -04:00
2013-08-13 15:10:22 -07:00
2014-12-16 11:19:42 -05:00
2012-10-13 10:46:48 +01:00
2015-06-06 23:57:12 -07:00
2015-06-15 19:49:22 -07:00
2015-04-14 18:25:15 -07:00
2012-10-13 10:46:48 +01:00
2013-08-26 16:37:08 -04:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2015-05-25 13:25:35 -04:00
2012-10-13 10:46:48 +01:00
2015-04-22 10:55:06 -07:00
2014-12-02 13:52:53 -07:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2015-02-11 17:06:00 -08:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2013-09-24 10:35:19 +01:00
2015-04-21 15:21:29 +02:00
2014-12-31 14:17:20 -05:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2015-02-03 12:48:40 -05:00
2012-10-13 10:46:48 +01:00
2015-04-21 09:44:55 -03:00
2014-08-08 15:57:31 -07:00
2013-11-27 11:03:38 -08:00
2014-02-07 15:30:34 -08:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2012-12-14 13:05:23 +10:30
2015-05-09 22:29:50 -04:00
2013-01-21 13:55:14 -05:00
2014-12-13 12:42:52 -08:00
2012-10-13 10:46:48 +01:00
2013-02-27 19:10:22 -08:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2013-12-22 18:02:43 -05:00
2015-06-18 21:14:31 +02:00
2015-06-21 10:18:18 -07:00
2015-06-09 01:21:35 +02:00
2015-04-21 16:16:04 -04:00
2015-04-23 15:16:14 -04:00
2015-05-06 15:50:02 +02:00
2012-10-13 10:46:48 +01:00
2012-11-16 10:15:35 -08:00
2015-06-01 15:05:40 -07:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2015-05-21 23:26:51 -04:00
2015-05-12 18:22:49 -04:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2014-03-21 14:21:13 -04:00
2012-10-13 10:46:48 +01:00
2015-05-31 21:47:23 -07:00
2014-01-20 14:44:17 -08:00
2013-04-12 16:54:38 +02:00
2012-10-13 10:46:48 +01:00
2015-05-14 22:45:39 -04:00
2012-10-13 10:46:48 +01:00
2014-07-18 12:13:40 -07:00
2012-10-13 10:46:48 +01:00
2015-03-07 03:39:55 +01:00
2015-05-09 16:42:32 -04:00
2015-06-15 19:49:22 -07:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2014-12-10 17:41:10 -08:00
2012-10-13 10:46:48 +01:00
2015-04-19 22:40:26 -07:00
2012-10-13 10:46:48 +01:00
2015-05-21 23:25:21 -04:00
2013-03-22 16:19:59 -07:00
2014-04-26 12:13:24 -04:00
2015-06-11 23:37:37 +02:00
2014-05-23 16:28:53 -04:00
2015-01-31 09:05:06 -08:00
2015-04-08 06:36:52 -03:00
2015-03-23 11:44:35 -07:00
2013-05-02 13:40:15 +03:00
2015-04-08 06:36:52 -03:00
2015-06-01 15:46:54 +02:00
2014-12-09 12:06:32 +02:00
2015-03-29 12:13:52 +10:30
2015-03-29 12:13:52 +10:30
2015-05-01 20:46:32 -07:00
2013-03-08 12:24:48 -05:00
2012-10-13 10:46:48 +01:00
2015-04-03 01:04:18 -03:00