Re: [RFC V3 PATCH 22/26] net/netpolicy: set per task policy by proc

From: Sergei Shtylyov
Date: Mon Sep 12 2016 - 13:02:03 EST


On 09/12/2016 05:55 PM, kan.liang@xxxxxxxxx wrote:

From: Kan Liang <kan.liang@xxxxxxxxx>

Users may not want to change the source code to add per task net polic

Policy?

support. Or they may want to change a running task's net policy. prctl
does not work for both cases.

This patch adds an interface in /proc, which can be used to set and
retrieve policy of already running tasks. User can write the policy name
into /proc/$PID/net_policy to set per task net policy.

Signed-off-by: Kan Liang <kan.liang@xxxxxxxxx>

[...]

MBR, Sergei