inet_diag: add support for cgroup filter
This patch adds ability to filter sockets based on cgroup v2 ID. Such filter is helpful in ss utility for filtering sockets by cgroup pathname. Signed-off-by: Dmitry Yakunin <zeil@yandex-team.ru> Reviewed-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
6e3a401fc8
commit
b1f3e43dbf
@@ -96,6 +96,7 @@ enum {
|
||||
INET_DIAG_BC_MARK_COND,
|
||||
INET_DIAG_BC_S_EQ,
|
||||
INET_DIAG_BC_D_EQ,
|
||||
INET_DIAG_BC_CGROUP_COND, /* u64 cgroup v2 ID */
|
||||
};
|
||||
|
||||
struct inet_diag_hostcond {
|
||||
|
Reference in New Issue
Block a user