* none zero check of the classid in xt_cgroup
@ 2014-08-16 6:11 Alexey Perevalov
2014-08-18 13:52 ` Daniel Borkmann
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Perevalov @ 2014-08-16 6:11 UTC (permalink / raw)
To: Daniel Borkmann; +Cc: netfilter-devel
Hello Daniel,
I have a question regarding xt_cgroup, again )
I'm interesting why did you add check for none zero id into
cgroup_mt_check. With it, it's impossible
to introduce some rules, like -m cgroup ! --cgroup 0. It could be useful
for end user, for example, to block
all processes which was under cgroups, but not whole traffic.
Of course it could be made by ROOT_CGROUP with none 0 classid, which
will contain all processes in the system.
But, I think, in this case OS will be faced with little overhead to mark
every packet.
--
Best regards,
Alexey Perevalov
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: none zero check of the classid in xt_cgroup
2014-08-16 6:11 none zero check of the classid in xt_cgroup Alexey Perevalov
@ 2014-08-18 13:52 ` Daniel Borkmann
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Borkmann @ 2014-08-18 13:52 UTC (permalink / raw)
To: Alexey Perevalov; +Cc: netfilter-devel
On 08/16/2014 08:11 AM, Alexey Perevalov wrote:
> Hello Daniel,
>
> I have a question regarding xt_cgroup, again )
>
> I'm interesting why did you add check for none zero id into cgroup_mt_check. With it, it's impossible
> to introduce some rules, like -m cgroup ! --cgroup 0. It could be useful for end user, for example, to block
> all processes which was under cgroups, but not whole traffic.
Yes, indeed, probably I was too focussed on [1] when in combination
with cls_cgroup (as they use the same cgroup) it's non-zero anyway;
but that doesn't make sense when in use as xt_cgroup stand-alone.
I've sent a patch, thanks.
[1] Documentation/cgroups/net_cls.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-18 13:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-16 6:11 none zero check of the classid in xt_cgroup Alexey Perevalov
2014-08-18 13:52 ` Daniel Borkmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).