[RFC net-next] ppp: allow usage in namespaces

2017-10-09 Thread Matteo Croce
Check for CAP_NET_ADMIN with ns_capable() instead of capable() to allow usage of ppp in user namespace other than the init one. Signed-off-by: Matteo Croce <mcr...@redhat.com> --- drivers/net/ppp/ppp_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/n

[PATCH] ppp: allow usage in namespaces

2017-10-27 Thread Matteo Croce
Check for CAP_NET_ADMIN with ns_capable() instead of capable() to allow usage of ppp in user namespace other than the init one. Signed-off-by: Matteo Croce <mcr...@redhat.com> --- drivers/net/ppp/ppp_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/n

[PATCH v3] pppoe: custom host-uniq tag

2018-11-07 Thread Matteo Croce
Add pppoe 'host-uniq' option to set an arbitrary host-uniq tag instead of the pppd pid. Some ISPs use such tag to authenticate the CPE, so it must be set to a proper value to connect. Signed-off-by: Matteo Croce Signed-off-by: Jo-Philipp Wich --- pppd/plugins/rp-pppoe/common.c | 14

[PATCH v4] pppoe: custom host-uniq tag

2018-11-23 Thread Matteo Croce
Add pppoe 'host-uniq' option to set an arbitrary host-uniq tag instead of the pppd pid. Some ISPs use such tag to authenticate the CPE, so it must be set to a proper value to connect. Signed-off-by: Matteo Croce Signed-off-by: Jo-Philipp Wich --- changes from v3: fix a buffer overflow

Re: [PATCH v3] pppoe: custom host-uniq tag

2018-11-23 Thread Matteo Croce
On Sat, Nov 10, 2018 at 6:55 AM Paul Mackerras wrote: > > On Thu, Nov 08, 2018 at 12:52:43AM +0100, Matteo Croce wrote: > > Add pppoe 'host-uniq' option to set an arbitrary > > host-uniq tag instead of the pppd pid. > > Some ISPs use such tag to authenticate the CP

[PATCH pppd v4] pppoe: custom host-uniq tag

2019-05-04 Thread Matteo Croce
Add pppoe 'host-uniq' option to set an arbitrary host-uniq tag instead of the pppd pid. Some ISPs use such tag to authenticate the CPE, so it must be set to a proper value to connect. Signed-off-by: Matteo Croce Signed-off-by: Jo-Philipp Wich --- pppd/plugins/rp-pppoe/common.c | 14

Re: [PATCH pppd v4] pppoe: custom host-uniq tag

2019-05-07 Thread Matteo Croce
On Tue, May 7, 2019 at 11:10 AM Tom Parkin wrote: > > Hi Matteo, > > On Sat, May 04, 2019 at 06:48:53PM +0200, Matteo Croce wrote: > > Add pppoe 'host-uniq' option to set an arbitrary > > host-uniq tag instead of the pppd pid. > > Some ISPs use such tag to authen