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
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
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
> >
>
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
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
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
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
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
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
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
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
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.
> >
>
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
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
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
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
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
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
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
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
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
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
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
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
)
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
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
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
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
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
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.
>
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
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
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
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
)
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
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
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
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
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
> >
(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
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
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
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
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
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
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
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
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
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
> > ---
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
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
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
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
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
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
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
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
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
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
:
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
/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
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
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
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
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
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
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
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
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
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
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
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
> > > >
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
> > > >
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 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
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(+)
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
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
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
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
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
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
-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
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
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 - 100 of 138 matches
Mail list logo