]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
cgroup, man: improve man-page bits
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 27 Mar 2015 18:38:36 +0000 (19:38 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 8 Apr 2015 17:07:48 +0000 (19:07 +0200)
Document limitations when in use with INPUT until we found a
better solution. Also fix up indent in the example section.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_cgroup.man

index 456a03111c181ec11311022b258edcb078fa2b49..d0eb09b292fd81e18dbd6b5a428fab3724001472 100644 (file)
@@ -2,13 +2,21 @@
 [\fB!\fP] \fB\-\-cgroup\fP \fIfwid\fP
 Match corresponding cgroup for this packet.
 
-Can be used to assign particular firewall policies for aggregated
-task/jobs on the system. This allows for more fine-grained firewall
-policies that only match for a subset of the system's processes.
-fwid is the maker set through the net_cls cgroup's id.
+Can be used in the OUTPUT chain to assign particular firewall
+policies for aggregated task/jobs on the system. This allows
+for more fine-grained firewall policies that only match for a
+subset of the system's processes. fwid is the maker set through
+the net_cls cgroup's id.
+
+\fBIMPORTANT\fP: when being used in the INPUT chain, the cgroup
+matcher is currently only of limited functionality, meaning it
+will only match on packets that are processed for local sockets
+through early socket demuxing. Therefore, general usage on the
+INPUT chain is disadviced unless the implications are well
+understood.
 .PP
 Example:
-.PP
+.IP
 iptables \-A OUTPUT \-p tcp \-\-sport 80 \-m cgroup ! \-\-cgroup 1
 \-j DROP
 .PP