summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDmitry Yakunin <zeil@yandex-team.ru>2020-04-30 18:51:15 +0300
committerDavid S. Miller <davem@davemloft.net>2020-04-30 12:54:02 -0700
commitb1f3e43dbfacfcd95296b0f80f84b186add9ef54 (patch)
treeed40e881e11b90220f724c91cce783800bb2d0d0 /include
parent6e3a401fc8af01828bcdc92d713195d318b36e7e (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/inet_diag.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/inet_diag.h b/include/uapi/linux/inet_diag.h
index c9b1e551792c..e6f183ee8417 100644
--- a/include/uapi/linux/inet_diag.h
+++ b/include/uapi/linux/inet_diag.h
@@ -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 {