Files
kernel_xiaomi_sm8250/include/uapi/linux
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-02-14 17:05:03 +00:00
2015-04-21 16:16:02 -04:00
2015-02-23 09:59:07 -06:00
2015-03-06 21:50:02 -05:00
2015-04-12 21:25:13 -04:00
2015-05-13 15:43:00 -04:00
2014-12-16 11:19:42 -05:00
2014-12-22 16:12:36 -05:00
2015-02-09 16:59:03 +09:00
2015-05-25 13:25:35 -04:00
2015-02-17 14:34:51 -08:00
2015-02-03 12:48:40 -05:00
2015-01-20 13:51:06 +01:00
2014-12-13 12:42:52 -08:00
2015-02-02 18:46:51 -08:00
2015-04-23 15:16:14 -04:00
2015-02-07 18:43:16 +08:00
2014-12-10 17:41:10 -08:00
2015-03-05 22:08:42 -05:00
2015-06-11 23:37:37 +02:00
2015-03-29 12:13:52 +10:30
2015-03-29 12:13:52 +10:30
2015-03-31 13:58:35 -04:00