Re: [PATCH v5 0/6] usb: interface authorization

2015-07-21 Thread Stefan Koch
Am Montag, den 29.06.2015, 15:41 -0700 schrieb Greg KH: > On Mon, Jun 29, 2015 at 11:23:47PM +0200, Stefan Koch wrote: > > Am Donnerstag, den 18.06.2015, 13:30 -0400 schrieb Alan Stern: > > > On Thu, 18 Jun 2015, Stefan Koch wrote: > > > > > > > This patc

Re: [PATCH v5 2/6] usb: interface authorization: Introduces the default interface authorization

2015-07-27 Thread Stefan Koch
Am Mittwoch, den 22.07.2015, 16:40 -0700 schrieb Greg KH: > On Thu, Jun 18, 2015 at 07:23:22PM +0200, Stefan Koch wrote: > > Interfaces are allowed per default. > > This can disabled or enabled (again) by writing 0 or 1 to > > /sys/bus/usb/devices/usbX/interface_authorized_de

Re: [PATCH v5 5/6] usb: interface authorization: SysFS part of USB interface authorization.

2015-07-27 Thread Stefan Koch
Am Mittwoch, den 22.07.2015, 16:43 -0700 schrieb Greg KH: > On Thu, Jun 18, 2015 at 07:23:25PM +0200, Stefan Koch wrote: > > This introduces an attribute for each interface to > > authorize (1) or deauthorize (0) it: > > /sys/bus/usb/devices/INTERFACE/authorized > > >

[PATCH v6 3/7] usb: interface authorization: Control interface probing and claiming

2015-07-27 Thread Stefan Koch
Driver probings and interface claims get rejected if an interface is not authorized. Signed-off-by: Stefan Koch --- drivers/usb/core/driver.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 818369a..d542d43 100644 --- a

[PATCH v6 5/7] usb: interface authorization: SysFS part of USB interface authorization

2015-07-27 Thread Stefan Koch
This introduces an attribute for each interface to authorize (1) or deauthorize (0) it: /sys/bus/usb/devices/INTERFACE/authorized Signed-off-by: Stefan Koch --- drivers/usb/core/sysfs.c | 43 +-- 1 file changed, 41 insertions(+), 2 deletions(-) diff

[PATCH v6 2/7] usb: interface authorization: Introduces the default interface authorization

2015-07-27 Thread Stefan Koch
Interfaces are allowed per default. This can disabled or enabled (again) by writing 0 or 1 to /sys/bus/usb/devices/usbX/interface_authorized_default Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 51 ++ drivers/usb/core/message.c | 1

[PATCH v6 1/7] usb: interface authorization: Declare authorized attribute

2015-07-27 Thread Stefan Koch
The attribute authorized shows the authorization state for an interface. Signed-off-by: Stefan Koch --- include/linux/usb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/usb.h b/include/linux/usb.h index 447fe29..3deccab 100644 --- a/include/linux/usb.h +++ b/include/linux

[PATCH v6 0/7] usb: interface authorization

2015-07-27 Thread Stefan Koch
authorized attribute is introduced for each interface. Each patch depends on all patches with a lesser number. Stefan Koch (7): usb: interface authorization: Declare authorized attribute usb: interface authorization: Introduces the default interface authorization usb: interface

[PATCH v6 4/7] usb: interface authorization: Introduces the USB interface authorization

2015-07-27 Thread Stefan Koch
be triggered manually by writing INTERFACE to /sys/bus/usb/drivers_probe Signed-off-by: Stefan Koch --- drivers/usb/core/message.c | 38 ++ drivers/usb/core/usb.h | 2 ++ 2 files changed, 40 insertions(+) diff --git a/drivers/usb/core/message.c b/drivers

[PATCH v6 7/7] usb: interface authorization: Use a flag for the default device authorization

2015-07-27 Thread Stefan Koch
With this patch a flag instead of a variable is used for the default device authorization. Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 28 ++-- drivers/usb/core/usb.c | 2 +- include/linux/usb/hcd.h | 6 -- 3 files changed, 23 insertions(+), 13

[PATCH v6 6/7] usb: interface authorization: Documentation part

2015-07-27 Thread Stefan Koch
This part adds the documentation for the interface authorization. Signed-off-by: Stefan Koch --- Documentation/ABI/testing/sysfs-bus-usb | 22 + Documentation/usb/authorization.txt | 34 + 2 files changed, 56 insertions(+) diff --git a

Re: [PATCH v6 0/7] usb: interface authorization

2015-07-27 Thread Stefan Koch
Am Montag, den 27.07.2015, 09:58 -0700 schrieb Greg KH: > On Mon, Jul 27, 2015 at 01:29:48PM +0200, Stefan Koch wrote: > > This patch introduces an interface authorization for USB devices. > > The kernel supports a device authorization because of wireless USB. > > >

Re: [PATCH v5 2/6] usb: interface authorization: Introduces the default interface authorization

2015-07-27 Thread Stefan Koch
Am Montag, den 27.07.2015, 10:00 -0700 schrieb Greg KH: > On Mon, Jul 27, 2015 at 09:50:44AM +0200, Stefan Koch wrote: > > Am Mittwoch, den 22.07.2015, 16:40 -0700 schrieb Greg KH: > > > On Thu, Jun 18, 2015 at 07:23:22PM +0200, Stefan Koch wrote: > > > > Inte

[PATCH RESEND v6 5/7] usb: interface authorization: SysFS part of USB interface authorization

2015-07-28 Thread Stefan Koch
This introduces an attribute for each interface to authorize (1) or deauthorize (0) it: /sys/bus/usb/devices/INTERFACE/authorized Signed-off-by: Stefan Koch --- drivers/usb/core/sysfs.c | 43 +-- 1 file changed, 41 insertions(+), 2 deletions(-) diff

[PATCH RESEND v6 6/7] usb: interface authorization: Documentation part

2015-07-28 Thread Stefan Koch
This part adds the documentation for the interface authorization. Signed-off-by: Stefan Koch --- Documentation/ABI/testing/sysfs-bus-usb | 22 + Documentation/usb/authorization.txt | 34 + 2 files changed, 56 insertions(+) diff --git a

[PATCH RESEND v6 2/7] usb: interface authorization: Introduces the default interface authorization

2015-07-28 Thread Stefan Koch
Interfaces are allowed per default. This can disabled or enabled (again) by writing 0 or 1 to /sys/bus/usb/devices/usbX/interface_authorized_default Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 51 ++ drivers/usb/core/message.c | 1

[PATCH RESEND v6 0/7] usb: interface authorization

2015-07-28 Thread Stefan Koch
from Greg K-H - Changed device authorization to save the default bit in the same flag as the interface authorization does this (recommended by Alan Stern http://permalink.gmane.org/gmane.linux.usb.general/127086) Stefan Koch (7): usb: interface authorization: Declare authorized attribute usb

[PATCH RESEND v6 4/7] usb: interface authorization: Introduces the USB interface authorization

2015-07-28 Thread Stefan Koch
be triggered manually by writing INTERFACE to /sys/bus/usb/drivers_probe Signed-off-by: Stefan Koch --- drivers/usb/core/message.c | 38 ++ drivers/usb/core/usb.h | 2 ++ 2 files changed, 40 insertions(+) diff --git a/drivers/usb/core/message.c b/drivers

[PATCH RESEND v6 1/7] usb: interface authorization: Declare authorized attribute

2015-07-28 Thread Stefan Koch
The attribute authorized shows the authorization state for an interface. Signed-off-by: Stefan Koch --- include/linux/usb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/usb.h b/include/linux/usb.h index 447fe29..3deccab 100644 --- a/include/linux/usb.h +++ b/include/linux

[PATCH RESEND v6 7/7] usb: interface authorization: Use a flag for the default device authorization

2015-07-28 Thread Stefan Koch
With this patch a flag instead of a variable is used for the default device authorization. Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 28 ++-- drivers/usb/core/usb.c | 2 +- include/linux/usb/hcd.h | 6 -- 3 files changed, 23 insertions(+), 13

[PATCH RESEND v6 3/7] usb: interface authorization: Control interface probing and claiming

2015-07-28 Thread Stefan Koch
Driver probings and interface claims get rejected if an interface is not authorized. Signed-off-by: Stefan Koch --- drivers/usb/core/driver.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 818369a..d542d43 100644 --- a

[PATCH v7 1/7] usb: interface authorization: Declare authorized attribute

2015-07-29 Thread Stefan Koch
The attribute authorized shows the authorization state for an interface. Signed-off-by: Stefan Koch --- include/linux/usb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/usb.h b/include/linux/usb.h index 447fe29..3deccab 100644 --- a/include/linux/usb.h +++ b/include/linux

[PATCH v7 5/7] usb: interface authorization: SysFS part of USB interface authorization

2015-07-29 Thread Stefan Koch
This introduces an attribute for each interface to authorize (1) or deauthorize (0) it: /sys/bus/usb/devices/INTERFACE/authorized Signed-off-by: Stefan Koch --- drivers/usb/core/sysfs.c | 43 +-- 1 file changed, 41 insertions(+), 2 deletions(-) diff

[PATCH v7 4/7] usb: interface authorization: Introduces the USB interface authorization

2015-07-29 Thread Stefan Koch
be triggered manually by writing INTERFACE to /sys/bus/usb/drivers_probe Signed-off-by: Stefan Koch --- drivers/usb/core/message.c | 38 ++ drivers/usb/core/usb.h | 2 ++ 2 files changed, 40 insertions(+) diff --git a/drivers/usb/core/message.c b/drivers

[PATCH v7 0/7] usb: interface authorization

2015-07-29 Thread Stefan Koch
) Stefan Koch (7): usb: interface authorization: Declare authorized attribute usb: interface authorization: Introduces the default interface authorization usb: interface authorization: Control interface probing and claiming usb: interface authorization: Introduces the USB interface

[PATCH v7 2/7] usb: interface authorization: Introduces the default interface authorization

2015-07-29 Thread Stefan Koch
Interfaces are allowed per default. This can disabled or enabled (again) by writing 0 or 1 to /sys/bus/usb/devices/usbX/interface_authorized_default Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 47 ++ drivers/usb/core/message.c | 1

[PATCH v7 3/7] usb: interface authorization: Control interface probing and claiming

2015-07-29 Thread Stefan Koch
Driver probings and interface claims get rejected if an interface is not authorized. Signed-off-by: Stefan Koch --- drivers/usb/core/driver.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 818369a..d542d43 100644 --- a

[PATCH v7 6/7] usb: interface authorization: Documentation part

2015-07-29 Thread Stefan Koch
This part adds the documentation for the interface authorization. Signed-off-by: Stefan Koch --- Documentation/ABI/testing/sysfs-bus-usb | 22 + Documentation/usb/authorization.txt | 34 + 2 files changed, 56 insertions(+) diff --git a

[PATCH v7 7/7] usb: interface authorization: Use a flag for the default device authorization

2015-07-29 Thread Stefan Koch
With this patch a flag instead of a variable is used for the default device authorization. Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 31 +-- drivers/usb/core/usb.c | 2 +- include/linux/usb/hcd.h | 6 -- 3 files changed, 26 insertions(+), 13

Re: [PATCH v7 0/7] usb: interface authorization

2015-07-29 Thread Stefan Koch
Am Mittwoch, den 29.07.2015, 13:40 +0300 schrieb Sergei Shtylyov: > Hello. > > On 7/29/2015 11:16 AM, Stefan Koch wrote: > > > This patch introduces an interface authorization for USB devices. > > The kernel supports a device authorization because of wireless USB. >

[PATCH RESEND v7 6/7] usb: interface authorization: Documentation part

2015-07-29 Thread Stefan Koch
This part adds the documentation for the interface authorization. Signed-off-by: Stefan Koch --- Documentation/ABI/testing/sysfs-bus-usb | 22 + Documentation/usb/authorization.txt | 34 + 2 files changed, 56 insertions(+) diff --git a

[PATCH RESEND v7 4/7] usb: interface authorization: Introduces the USB interface authorization

2015-07-29 Thread Stefan Koch
be triggered manually by writing INTERFACE to /sys/bus/usb/drivers_probe Signed-off-by: Stefan Koch --- drivers/usb/core/message.c | 38 ++ drivers/usb/core/usb.h | 2 ++ 2 files changed, 40 insertions(+) diff --git a/drivers/usb/core/message.c b/drivers

[PATCH RESEND v7 5/7] usb: interface authorization: SysFS part of USB interface authorization

2015-07-29 Thread Stefan Koch
This introduces an attribute for each interface to authorize (1) or deauthorize (0) it: /sys/bus/usb/devices/INTERFACE/authorized Signed-off-by: Stefan Koch --- drivers/usb/core/sysfs.c | 39 +-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a

[PATCH RESEND v7 2/7] usb: interface authorization: Introduces the default interface authorization

2015-07-29 Thread Stefan Koch
Interfaces are allowed per default. This can disabled or enabled (again) by writing 0 or 1 to /sys/bus/usb/devices/usbX/interface_authorized_default Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 47 ++ drivers/usb/core/message.c | 1

[PATCH RESEND v7 0/7] usb: interface authorization

2015-07-29 Thread Stefan Koch
) Stefan Koch (7): usb: interface authorization: Declare authorized attribute usb: interface authorization: Introduces the default interface authorization usb: interface authorization: Control interface probing and claiming usb: interface authorization: Introduces the USB interface

[PATCH RESEND v7 1/7] usb: interface authorization: Declare authorized attribute

2015-07-29 Thread Stefan Koch
The attribute authorized shows the authorization state for an interface. Signed-off-by: Stefan Koch --- include/linux/usb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/usb.h b/include/linux/usb.h index 447fe29..3deccab 100644 --- a/include/linux/usb.h +++ b/include/linux

[PATCH RESEND v7 7/7] usb: interface authorization: Use a flag for the default device authorization

2015-07-29 Thread Stefan Koch
With this patch a flag instead of a variable is used for the default device authorization. Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 31 +-- drivers/usb/core/usb.c | 2 +- include/linux/usb/hcd.h | 6 -- 3 files changed, 26 insertions(+), 13

[PATCH RESEND v7 3/7] usb: interface authorization: Control interface probing and claiming

2015-07-29 Thread Stefan Koch
Driver probings and interface claims get rejected if an interface is not authorized. Signed-off-by: Stefan Koch --- drivers/usb/core/driver.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 818369a..d542d43 100644 --- a

Re: [PATCH RESEND v7 5/7] usb: interface authorization: SysFS part of USB interface authorization

2015-07-29 Thread Stefan Koch
Am Mittwoch, den 29.07.2015, 10:12 -0400 schrieb Alan Stern: > On Wed, 29 Jul 2015, Stefan Koch wrote: > > > This introduces an attribute for each interface to > > authorize (1) or deauthorize (0) it: > > /sys/bus/usb/devices/INTERFACE/authorized > >

[PATCH v8 0/7] usb: interface authorization

2015-07-29 Thread Stefan Koch
(recommended by Alan Stern http://permalink.gmane.org/gmane.linux.usb.general/127086) Stefan Koch (7): usb: interface authorization: Declare authorized attribute usb: interface authorization: Introduces the default interface authorization usb: interface authorization: Control interface probing

[PATCH v8 6/7] usb: interface authorization: Documentation part

2015-07-29 Thread Stefan Koch
This part adds the documentation for the interface authorization. Signed-off-by: Stefan Koch --- Documentation/ABI/testing/sysfs-bus-usb | 22 + Documentation/usb/authorization.txt | 34 + 2 files changed, 56 insertions(+) diff --git a

[PATCH v8 1/7] usb: interface authorization: Declare authorized attribute

2015-07-29 Thread Stefan Koch
The attribute authorized shows the authorization state for an interface. Signed-off-by: Stefan Koch --- include/linux/usb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/usb.h b/include/linux/usb.h index 447fe29..3deccab 100644 --- a/include/linux/usb.h +++ b/include/linux

[PATCH v8 7/7] usb: interface authorization: Use a flag for the default device authorization

2015-07-29 Thread Stefan Koch
With this patch a flag instead of a variable is used for the default device authorization. Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 31 +-- drivers/usb/core/usb.c | 2 +- include/linux/usb/hcd.h | 6 -- 3 files changed, 26 insertions(+), 13

[PATCH v8 5/7] usb: interface authorization: SysFS part of USB interface authorization

2015-07-29 Thread Stefan Koch
This introduces an attribute for each interface to authorize (1) or deauthorize (0) it: /sys/bus/usb/devices/INTERFACE/authorized Signed-off-by: Stefan Koch --- drivers/usb/core/sysfs.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/usb/core

[PATCH v8 2/7] usb: interface authorization: Introduces the default interface authorization

2015-07-29 Thread Stefan Koch
Interfaces are allowed per default. This can disabled or enabled (again) by writing 0 or 1 to /sys/bus/usb/devices/usbX/interface_authorized_default Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 47 ++ drivers/usb/core/message.c | 1

[PATCH v8 3/7] usb: interface authorization: Control interface probing and claiming

2015-07-29 Thread Stefan Koch
Driver probings and interface claims get rejected if an interface is not authorized. Signed-off-by: Stefan Koch --- drivers/usb/core/driver.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 818369a..d542d43 100644 --- a

[PATCH v8 4/7] usb: interface authorization: Introduces the USB interface authorization

2015-07-29 Thread Stefan Koch
be triggered manually by writing INTERFACE to /sys/bus/usb/drivers_probe Signed-off-by: Stefan Koch --- drivers/usb/core/message.c | 38 ++ drivers/usb/core/usb.h | 2 ++ 2 files changed, 40 insertions(+) diff --git a/drivers/usb/core/message.c b/drivers

Re: [PATCH v8 2/7] usb: interface authorization: Introduces the default interface authorization

2015-08-04 Thread Stefan Koch
Am Montag, den 03.08.2015, 15:06 -0700 schrieb Greg KH: > On Thu, Jul 30, 2015 at 08:19:19AM +0200, Stefan Koch wrote: > > Interfaces are allowed per default. > > This can disabled or enabled (again) by writing 0 or 1 to > > /sys/bus/usb/devices/usbX/interface_authorized_de

Re: [PATCH v8 7/7] usb: interface authorization: Use a flag for the default device authorization

2015-08-04 Thread Stefan Koch
Am Montag, den 03.08.2015, 15:11 -0700 schrieb Greg KH: > On Thu, Jul 30, 2015 at 08:19:24AM +0200, Stefan Koch wrote: > > With this patch a flag instead of a variable > > is used for the default device authorization. > > > > Signed-off-by: Stefan Koch > > ---

Re: [PATCH v8 2/7] usb: interface authorization: Introduces the default interface authorization

2015-08-04 Thread Stefan Koch
Am Dienstag, den 04.08.2015, 12:14 -0700 schrieb Greg KH: > On Tue, Aug 04, 2015 at 08:55:38PM +0200, Stefan Koch wrote: > > Am Montag, den 03.08.2015, 15:06 -0700 schrieb Greg KH: > > > On Thu, Jul 30, 2015 at 08:19:19AM +0200, Stefan Koch wrote: > > > > Inte

[PATCH v9 1/7] usb: interface authorization: Declare authorized attribute

2015-08-08 Thread Stefan Koch
The attribute authorized shows the authorization state for an interface. Signed-off-by: Stefan Koch --- include/linux/usb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/usb.h b/include/linux/usb.h index 447fe29..3deccab 100644 --- a/include/linux/usb.h +++ b/include/linux

[PATCH v9 0/7] usb: interface authorization

2015-08-08 Thread Stefan Koch
default bit in the same flag as the interface authorization does this (recommended by Alan Stern http://permalink.gmane.org/gmane.linux.usb.general/127086) Stefan Koch (7): usb: interface authorization: Declare authorized attribute usb: interface authorization: Introduces the default

[PATCH v9 2/7] usb: interface authorization: Introduces the default interface authorization

2015-08-08 Thread Stefan Koch
Interfaces are allowed per default. This can disabled or enabled (again) by writing 0 or 1 to /sys/bus/usb/devices/usbX/interface_authorized_default Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 47 ++ drivers/usb/core/message.c | 1

[PATCH v9 3/7] usb: interface authorization: Control interface probing and claiming

2015-08-08 Thread Stefan Koch
Driver probings and interface claims get rejected if an interface is not authorized. Signed-off-by: Stefan Koch --- drivers/usb/core/driver.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 818369a..d542d43 100644 --- a

[PATCH v9 7/7] usb: interface authorization: Use a flag for the default device authorization

2015-08-08 Thread Stefan Koch
With this patch a flag instead of a variable is used for the default device authorization. Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 31 +-- drivers/usb/core/usb.c | 2 +- include/linux/usb/hcd.h | 16 +--- 3 files changed, 31 insertions

[PATCH v9 4/7] usb: interface authorization: Introduces the USB interface authorization

2015-08-08 Thread Stefan Koch
be triggered manually by writing INTERFACE to /sys/bus/usb/drivers_probe Signed-off-by: Stefan Koch --- drivers/usb/core/message.c | 38 ++ drivers/usb/core/usb.h | 2 ++ 2 files changed, 40 insertions(+) diff --git a/drivers/usb/core/message.c b/drivers

[PATCH v9 6/7] usb: interface authorization: Documentation part

2015-08-08 Thread Stefan Koch
This part adds the documentation for the interface authorization. Signed-off-by: Stefan Koch --- Documentation/ABI/testing/sysfs-bus-usb | 22 + Documentation/usb/authorization.txt | 34 + 2 files changed, 56 insertions(+) diff --git a

[PATCH v9 5/7] usb: interface authorization: SysFS part of USB interface authorization

2015-08-08 Thread Stefan Koch
This introduces an attribute for each interface to authorize (1) or deauthorize (0) it: /sys/bus/usb/devices/INTERFACE/authorized Signed-off-by: Stefan Koch --- drivers/usb/core/sysfs.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/usb/core

Re: [PATCH v9 1/7] usb: interface authorization: Declare authorized attribute

2015-08-24 Thread Stefan Koch
Am Montag, den 17.08.2015, 09:34 -0700 schrieb Greg KH: > On Sat, Aug 08, 2015 at 11:32:50AM +0200, Stefan Koch wrote: > > The attribute authorized shows the authorization state for an interface. > > > > Signed-off-by: Stefan Koch > > This email bounces, so I have to

[PATCH v10 0/7] usb: interface authorization

2015-08-24 Thread Stefan Koch
: - Implemented suggestions from Greg K-H - Changed device authorization to save the default bit in the same flag as the interface authorization does this (recommended by Alan Stern http://permalink.gmane.org/gmane.linux.usb.general/127086) Stefan Koch (7): usb: interface authorization: Declare

[PATCH v10 5/7] usb: interface authorization: SysFS part of USB interface authorization

2015-08-24 Thread Stefan Koch
This introduces an attribute for each interface to authorize (1) or deauthorize (0) it: /sys/bus/usb/devices/INTERFACE/authorized Signed-off-by: Stefan Koch --- drivers/usb/core/sysfs.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/usb/core

[PATCH v10 6/7] usb: interface authorization: Documentation part

2015-08-24 Thread Stefan Koch
This part adds the documentation for the interface authorization. Signed-off-by: Stefan Koch --- Documentation/ABI/testing/sysfs-bus-usb | 20 Documentation/usb/authorization.txt | 31 +++ 2 files changed, 51 insertions(+) diff --git a

[PATCH v10 1/7] usb: interface authorization: Declare authorized attribute

2015-08-24 Thread Stefan Koch
The attribute authorized shows the authorization state for an interface. Signed-off-by: Stefan Koch --- include/linux/usb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/usb.h b/include/linux/usb.h index 447fe29..3deccab 100644 --- a/include/linux/usb.h +++ b/include/linux

[PATCH v10 7/7] usb: interface authorization: Use a flag for the default device authorization

2015-08-24 Thread Stefan Koch
With this patch a flag instead of a variable is used for the default device authorization. Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 31 +-- drivers/usb/core/usb.c | 2 +- include/linux/usb/hcd.h | 16 +--- 3 files changed, 31 insertions

[PATCH v10 2/7] usb: interface authorization: Introduces the default interface authorization

2015-08-24 Thread Stefan Koch
Interfaces are allowed per default. This can disabled or enabled (again) by writing 0 or 1 to /sys/bus/usb/devices/usbX/interface_authorized_default Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 47 ++ drivers/usb/core/message.c | 1

[PATCH v10 4/7] usb: interface authorization: Introduces the USB interface authorization

2015-08-24 Thread Stefan Koch
be triggered manually by writing INTERFACE to /sys/bus/usb/drivers_probe Signed-off-by: Stefan Koch --- drivers/usb/core/message.c | 38 ++ drivers/usb/core/usb.h | 2 ++ 2 files changed, 40 insertions(+) diff --git a/drivers/usb/core/message.c b/drivers

[PATCH v10 3/7] usb: interface authorization: Control interface probing and claiming

2015-08-24 Thread Stefan Koch
Driver probings and interface claims get rejected if an interface is not authorized. Signed-off-by: Stefan Koch --- drivers/usb/core/driver.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 818369a..d542d43 100644 --- a

Re: [PATCH v10 4/7] usb: interface authorization: Introduces the USB interface authorization

2015-08-25 Thread Stefan Koch
Am Dienstag, den 25.08.2015, 11:58 +0200 schrieb Krzysztof Opasiak: > > On 08/24/2015 11:09 PM, Stefan Koch wrote: > > The kernel supports the device authorization because of wireless USB. > > These is usable for wired USB devices, too. > > These new interface authoriza

[PATCH v11 4/7] usb: interface authorization: Introduces the USB interface authorization

2015-08-25 Thread Stefan Koch
be triggered manually by writing INTERFACE to /sys/bus/usb/drivers_probe Signed-off-by: Stefan Koch --- drivers/usb/core/message.c | 38 ++ drivers/usb/core/usb.h | 2 ++ 2 files changed, 40 insertions(+) diff --git a/drivers/usb/core/message.c b/drivers

[PATCH v11 3/7] usb: interface authorization: Control interface probing and claiming

2015-08-25 Thread Stefan Koch
Driver probings and interface claims get rejected if an interface is not authorized. Signed-off-by: Stefan Koch --- drivers/usb/core/driver.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 818369a..9908e74 100644 --- a

[PATCH v11 5/7] usb: interface authorization: SysFS part of USB interface authorization

2015-08-25 Thread Stefan Koch
This introduces an attribute for each interface to authorize (1) or deauthorize (0) it: /sys/bus/usb/devices/INTERFACE/authorized Signed-off-by: Stefan Koch --- drivers/usb/core/sysfs.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/usb/core

[PATCH v11 2/7] usb: interface authorization: Introduces the default interface authorization

2015-08-25 Thread Stefan Koch
Interfaces are allowed per default. This can disabled or enabled (again) by writing 0 or 1 to /sys/bus/usb/devices/usbX/interface_authorized_default Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 47 ++ drivers/usb/core/message.c | 1

[PATCH v11 6/7] usb: interface authorization: Documentation part

2015-08-25 Thread Stefan Koch
This part adds the documentation for the interface authorization. Signed-off-by: Stefan Koch --- Documentation/ABI/testing/sysfs-bus-usb | 20 Documentation/usb/authorization.txt | 31 +++ 2 files changed, 51 insertions(+) diff --git a

[PATCH v11 7/7] usb: interface authorization: Use a flag for the default device authorization

2015-08-25 Thread Stefan Koch
With this patch a flag instead of a variable is used for the default device authorization. Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 31 +-- drivers/usb/core/usb.c | 2 +- include/linux/usb/hcd.h | 16 +--- 3 files changed, 31 insertions

[PATCH v11 1/7] usb: interface authorization: Declare authorized attribute

2015-08-25 Thread Stefan Koch
The attribute authorized shows the authorization state for an interface. Signed-off-by: Stefan Koch --- include/linux/usb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/usb.h b/include/linux/usb.h index 447fe29..3deccab 100644 --- a/include/linux/usb.h +++ b/include/linux

[PATCH v11 0/7] usb: interface authorization

2015-08-25 Thread Stefan Koch
/gmane.linux.usb.general/127086) Stefan Koch (7): usb: interface authorization: Declare authorized attribute usb: interface authorization: Introduces the default interface authorization usb: interface authorization: Control interface probing and claiming usb: interface authorization: Introduces the USB

Re: [usb:usb-testing 2/8] include/linux/usb.h:187: warning: No description found for parameter 'authorized'

2015-09-24 Thread Stefan Koch
Hi Greg, should I correct this? Thanks Stefan Koch Am Mittwoch, den 23.09.2015, 03:40 +0800 schrieb kbuild test robot: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git > usb-testing > head: ff8e2c560eca32043ed097099debac488a4bd99f

[PATCH] Add usb interface authorization

2015-06-08 Thread Stefan Koch
the kernel behavior is the same as without the patch. Best regards Stefan Koch --- diff --git a/drivers/base/base.h b/drivers/base/base.h index 251c5d3..6bbedda 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h @@ -102,6 +102,7 @@ extern void container_dev_init(void

Re: [PATCH 1/4] Add usb interface authorization

2015-06-08 Thread Stefan Koch
Am 08.06.2015 um 16:40 schrieb Greg KH: > On Mon, Jun 08, 2015 at 03:24:26PM +0200, Stefan Koch wrote: >> Hi >> >> This is a patch that introduces an interface authorization for USB devices. >> >> The kernel supports already a device authorization bacause o

Re: [PATCH 2/4] Add usb interface authorization

2015-06-08 Thread Stefan Koch
Am 08.06.2015 um 16:40 schrieb Greg KH: > On Mon, Jun 08, 2015 at 03:24:26PM +0200, Stefan Koch wrote: >> Hi >> >> This is a patch that introduces an interface authorization for USB devices. >> >> The kernel supports already a device authorization bacause o

Re: [PATCH 3/4] Add usb interface authorization

2015-06-08 Thread Stefan Koch
Am 08.06.2015 um 16:40 schrieb Greg KH: > On Mon, Jun 08, 2015 at 03:24:26PM +0200, Stefan Koch wrote: >> Hi >> >> This is a patch that introduces an interface authorization for USB devices. >> >> The kernel supports already a device authorization bacause o

Re: [PATCH 4/4] Add usb interface authorization

2015-06-08 Thread Stefan Koch
Am 08.06.2015 um 16:40 schrieb Greg KH: > On Mon, Jun 08, 2015 at 03:24:26PM +0200, Stefan Koch wrote: >> Hi >> >> This is a patch that introduces an interface authorization for USB devices. >> >> The kernel supports already a device authorization bacause o

Re: [PATCH RESEND (1-3)/4] Add usb interface authorization

2015-06-09 Thread Stefan Koch
Am Montag, den 08.06.2015, 07:40 -0700 schrieb Greg KH: > On Mon, Jun 08, 2015 at 03:24:26PM +0200, Stefan Koch wrote: > > Hi > > > > This is a patch that introduces an interface authorization for USB devices. > > > > The kernel supports already a device auth

Re: [PATCH RESEND 4/4] Add usb interface authorization

2015-06-09 Thread Stefan Koch
Am Montag, den 08.06.2015, 07:40 -0700 schrieb Greg KH: > On Mon, Jun 08, 2015 at 03:24:26PM +0200, Stefan Koch wrote: > > Hi > > > > This is a patch that introduces an interface authorization for USB devices. > > > > The kernel supports already a device auth

Re: [PATCH RESEND (1-3)/4] Add usb interface authorization

2015-06-09 Thread Stefan Koch
Am Dienstag, den 09.06.2015, 07:49 -0700 schrieb Greg KH: > On Tue, Jun 09, 2015 at 03:48:47PM +0200, Stefan Koch wrote: > > Am Montag, den 08.06.2015, 07:40 -0700 schrieb Greg KH: > > > On Mon, Jun 08, 2015 at 03:24:26PM +0200, Stefan Koch wrote: > > > > Hi > &g

Re: [PATCH RESEND (1-3)/4] Add usb interface authorization

2015-06-09 Thread Stefan Koch
Am Dienstag, den 09.06.2015, 10:31 -0400 schrieb Alan Stern: > On Tue, 9 Jun 2015, Stefan Koch wrote: > > > Hi > > > > I think whitespaces should be ok now. I have tested now three mail > > clients... > > > > This patch series enables the interface auth

Re: [PATCH RESEND (1-3)/4] Add usb interface authorization

2015-06-11 Thread Stefan Koch
Am Dienstag, den 09.06.2015, 13:20 -0400 schrieb Alan Stern: > On Tue, 9 Jun 2015, Stefan Koch wrote: > > > Am Dienstag, den 09.06.2015, 10:31 -0400 schrieb Alan Stern: > > > On Tue, 9 Jun 2015, Stefan Koch wrote: > > > > > > > Hi > > > >

Re: [PATCH RESEND (1-3)/4] Add usb interface authorization

2015-06-12 Thread Stefan Koch
Am Dienstag, den 09.06.2015, 13:20 -0400 schrieb Alan Stern: > On Tue, 9 Jun 2015, Stefan Koch wrote: > > > Am Dienstag, den 09.06.2015, 10:31 -0400 schrieb Alan Stern: > > > On Tue, 9 Jun 2015, Stefan Koch wrote: > > > > > > > Hi > > > >

[PATCH v2 1/5] usb: Add usb interface authorization: Declare attributes of structures

2015-06-12 Thread Stefan Koch
These attributes are authorized, mask and mask_changed. The first shows the authorization state for an interface. The second describes the authorization states of all device interfaces. The third is a status bit to control a manual setting of the mask. Signed-off-by: Stefan Koch --- include

[PATCH v2 0/5] usb: Add usb interface authorization

2015-06-12 Thread Stefan Koch
patch is made now much simplier as suggested by Alan Stern. Each patch depends on all patches with a lesser number. Stefan Koch (5): usb: Add usb interface authorization: Declare attributes of structures usb: Add usb interface authorization: Introduces the default interface authorization

[PATCH v2 5/5] usb: Add usb interface authorization: SysFS part of usb interface authorization.

2015-06-12 Thread Stefan Koch
interfaces 0 and 2 from device at 3-2 should allowed, the others should be denied. echo 5 > /sys/bus/usb/devices/3-2/interface_authorization_mask Signed-off-by: Stefan Koch --- drivers/usb/core/sysfs.c | 71 +++- 1 file changed, 70 insertions(+)

[PATCH v2 2/5] usb: Add usb interface authorization: Introduces the default interface authorization

2015-06-12 Thread Stefan Koch
Interfaces would allowed per default. This can disabled or enabled by writing 0 or 1 to /sys/bus/usb/devices/usb*/interface_authorized_default Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 47 ++ drivers/usb/core/message.c | 8

[PATCH v2 4/5] usb: Add usb interface authorization: Introduces the usb interface authorization.

2015-06-12 Thread Stefan Koch
interface group (defined by respective mask) to avoid side effects. The interface group mask would updated at authorization. After that the usb interfaces are enabled. Finally, the device would probed. Signed-off-by: Stefan Koch --- drivers/usb/core/hub.c | 117

[PATCH v2 3/5] usb: Add usb interface authorization: Control interface probing and claiming

2015-06-12 Thread Stefan Koch
Driver probings and interface claims could rejected if an interface is not authorized. Signed-off-by: Stefan Koch --- drivers/base/base.h | 1 - drivers/usb/core/driver.c | 11 +++ include/linux/device.h| 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a

Re: [PATCH v2 5/5] usb: Add usb interface authorization: SysFS part of usb interface authorization.

2015-06-12 Thread Stefan Koch
Am Freitag, den 12.06.2015, 16:16 +0200 schrieb Krzysztof Opasiak: > > On 06/12/2015 03:42 PM, Oliver Neukum wrote: > > On Fri, 2015-06-12 at 15:22 +0200, Krzysztof Opasiak wrote: > >> > >> On 06/12/2015 03:10 PM, Oliver Neukum wrote: > > > >>> Some drivers (BT, CDC ACM, ...) require multiple inte

Re: [PATCH v2 0/5] usb: Add usb interface authorization

2015-06-12 Thread Stefan Koch
Am Freitag, den 12.06.2015, 14:09 -0400 schrieb Alan Stern: > On Fri, 12 Jun 2015, Stefan Koch wrote: > There is a lot of questionable material here. > > First of all, I agree with Krzysztof that having an "authorized" > attribute in each interface's sysfs

Re: [PATCH v2 0/5] usb: Add usb interface authorization

2015-06-12 Thread Stefan Koch
Am Freitag, den 12.06.2015, 16:34 -0400 schrieb Alan Stern: > On Fri, 12 Jun 2015, Stefan Koch wrote: > > > Am Freitag, den 12.06.2015, 14:09 -0400 schrieb Alan Stern: > > > On Fri, 12 Jun 2015, Stefan Koch wrote: > > > There is a lot of questionable material here

[PATCH v2 6/5] usb: Add usb interface authorization: second SysFS part for usb interface authorization attribute.

2015-06-12 Thread Stefan Koch
-by: Stefan Koch --- drivers/usb/core/sysfs.c | 55 1 file changed, 55 insertions(+) diff --git a/drivers/usb/core/sysfs.c b/drivers/usb/core/sysfs.c index afa0799e..54e2e8e 100644 --- a/drivers/usb/core/sysfs.c +++ b/drivers/usb/core/sysfs.c

Re: [PATCH v2 0/5] usb: Add usb interface authorization

2015-06-16 Thread Stefan Koch
Am Samstag, den 13.06.2015, 10:55 -0400 schrieb Alan Stern: > On Fri, 12 Jun 2015, Stefan Koch wrote: > > > Am Freitag, den 12.06.2015, 16:34 -0400 schrieb Alan Stern: > > > On Fri, 12 Jun 2015, Stefan Koch wrote: > > > > > > > Am Freitag, den

Re: [PATCH v2 0/5] usb: Add usb interface authorization

2015-06-16 Thread Stefan Koch
Am Dienstag, den 16.06.2015, 15:26 -0400 schrieb Alan Stern: > On Tue, 16 Jun 2015, Stefan Koch wrote: > > > > And call the attribute "authorize", not "interface_authorize". It will > > > be obvious that the attribute applies to the interface, because

  1   2   >