@@ -90,41 +90,36 @@ bpftool cgroup attach *CGROUP* *ATTACH_TYPE* *PROG* [*ATTACH_FLAGS*]
90
90
91
91
Non-default *ATTACH_FLAGS * are supported by kernel version 4.14 and later.
92
92
93
- *ATTACH_TYPE * can be on of:
94
- **ingress ** ingress path of the inet socket (since 4.10);
95
- **egress ** egress path of the inet socket (since 4.10);
96
- **sock_create ** opening of an inet socket (since 4.10);
97
- **sock_ops ** various socket operations (since 4.12);
98
- **device ** device access (since 4.15);
99
- **bind4 ** call to bind(2) for an inet4 socket (since 4.17);
100
- **bind6 ** call to bind(2) for an inet6 socket (since 4.17);
101
- **post_bind4 ** return from bind(2) for an inet4 socket (since 4.17);
102
- **post_bind6 ** return from bind(2) for an inet6 socket (since 4.17);
103
- **connect4 ** call to connect(2) for an inet4 socket (since 4.17);
104
- **connect6 ** call to connect(2) for an inet6 socket (since 4.17);
105
- **connect_unix ** call to connect(2) for a unix socket (since 6.7);
106
- **sendmsg4 ** call to sendto(2), sendmsg(2), sendmmsg(2) for an unconnected
107
- udp4 socket (since 4.18);
108
- **sendmsg6 ** call to sendto(2), sendmsg(2), sendmmsg(2) for an unconnected
109
- udp6 socket (since 4.18);
110
- **sendmsg_unix ** call to sendto(2), sendmsg(2), sendmmsg(2) for an
111
- unconnected unix socket (since 6.7);
112
- **recvmsg4 ** call to recvfrom(2), recvmsg(2), recvmmsg(2) for an
113
- unconnected udp4 socket (since 5.2);
114
- **recvmsg6 ** call to recvfrom(2), recvmsg(2), recvmmsg(2) for an
115
- unconnected udp6 socket (since 5.2);
116
- **recvmsg_unix ** call to recvfrom(2), recvmsg(2), recvmmsg(2) for an
117
- unconnected unix socket (since 6.7);
118
- **sysctl ** sysctl access (since 5.2);
119
- **getsockopt ** call to getsockopt (since 5.3);
120
- **setsockopt ** call to setsockopt (since 5.3);
121
- **getpeername4 ** call to getpeername(2) for an inet4 socket (since 5.8);
122
- **getpeername6 ** call to getpeername(2) for an inet6 socket (since 5.8);
123
- **getpeername_unix ** call to getpeername(2) for a unix socket (since 6.7);
124
- **getsockname4 ** call to getsockname(2) for an inet4 socket (since 5.8);
125
- **getsockname6 ** call to getsockname(2) for an inet6 socket (since 5.8).
126
- **getsockname_unix ** call to getsockname(2) for a unix socket (since 6.7);
127
- **sock_release ** closing an userspace inet socket (since 5.9).
93
+ *ATTACH_TYPE * can be one of:
94
+
95
+ - **ingress ** ingress path of the inet socket (since 4.10)
96
+ - **egress ** egress path of the inet socket (since 4.10)
97
+ - **sock_create ** opening of an inet socket (since 4.10)
98
+ - **sock_ops ** various socket operations (since 4.12)
99
+ - **device ** device access (since 4.15)
100
+ - **bind4 ** call to bind(2) for an inet4 socket (since 4.17)
101
+ - **bind6 ** call to bind(2) for an inet6 socket (since 4.17)
102
+ - **post_bind4 ** return from bind(2) for an inet4 socket (since 4.17)
103
+ - **post_bind6 ** return from bind(2) for an inet6 socket (since 4.17)
104
+ - **connect4 ** call to connect(2) for an inet4 socket (since 4.17)
105
+ - **connect6 ** call to connect(2) for an inet6 socket (since 4.17)
106
+ - **connect_unix ** call to connect(2) for a unix socket (since 6.7)
107
+ - **sendmsg4 ** call to sendto(2), sendmsg(2), sendmmsg(2) for an unconnected udp4 socket (since 4.18)
108
+ - **sendmsg6 ** call to sendto(2), sendmsg(2), sendmmsg(2) for an unconnected udp6 socket (since 4.18)
109
+ - **sendmsg_unix ** call to sendto(2), sendmsg(2), sendmmsg(2) for an unconnected unix socket (since 6.7)
110
+ - **recvmsg4 ** call to recvfrom(2), recvmsg(2), recvmmsg(2) for an unconnected udp4 socket (since 5.2)
111
+ - **recvmsg6 ** call to recvfrom(2), recvmsg(2), recvmmsg(2) for an unconnected udp6 socket (since 5.2)
112
+ - **recvmsg_unix ** call to recvfrom(2), recvmsg(2), recvmmsg(2) for an unconnected unix socket (since 6.7)
113
+ - **sysctl ** sysctl access (since 5.2)
114
+ - **getsockopt ** call to getsockopt (since 5.3)
115
+ - **setsockopt ** call to setsockopt (since 5.3)
116
+ - **getpeername4 ** call to getpeername(2) for an inet4 socket (since 5.8)
117
+ - **getpeername6 ** call to getpeername(2) for an inet6 socket (since 5.8)
118
+ - **getpeername_unix ** call to getpeername(2) for a unix socket (since 6.7)
119
+ - **getsockname4 ** call to getsockname(2) for an inet4 socket (since 5.8)
120
+ - **getsockname6 ** call to getsockname(2) for an inet6 socket (since 5.8)
121
+ - **getsockname_unix ** call to getsockname(2) for a unix socket (since 6.7)
122
+ - **sock_release ** closing a userspace inet socket (since 5.9)
128
123
129
124
bpftool cgroup detach *CGROUP * *ATTACH_TYPE * *PROG *
130
125
Detach *PROG * from the cgroup *CGROUP * and attach type *ATTACH_TYPE *.
0 commit comments