[RFC V2 PATCH 21/25] net/netpolicy: set per task policy by proc

2016-08-04 Thread kan . liang
From: Kan Liang Users may not want to change the source code to add per task net polic 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

[RFC V2 PATCH 21/25] net/netpolicy: set per task policy by proc

2016-08-04 Thread kan . liang
From: Kan Liang Users may not want to change the source code to add per task net polic 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