Chromium Code Reviews| Index: components/policy/resources/policy_templates.json |
| diff --git a/components/policy/resources/policy_templates.json b/components/policy/resources/policy_templates.json |
| index 85d50010561ca2593e8708f2328616cdba56c818..276aacbd563bb6a78a5959e330e3064929b022c6 100644 |
| --- a/components/policy/resources/policy_templates.json |
| +++ b/components/policy/resources/policy_templates.json |
| @@ -8178,6 +8178,42 @@ |
| free to change it. In this case, the default value is not reapplied at |
| restart.''', |
| }, |
| + { |
| + 'name': 'UsbDetachableWhitelist', |
| + 'type': 'list', |
| + 'schema': { |
| + 'type': 'array', |
| + 'items': { |
| + 'type': 'object', |
| + 'id': 'UsbDeviceId', |
| + 'properties': { |
| + 'vendor_id': { 'type': 'integer' }, |
| + 'product_id': { 'type': 'integer' }, |
| + }, |
| + }, |
| + }, |
| + 'supported_on': ['chrome_os:51-'], |
| + 'device_only': True, |
| + 'features': { |
| + 'dynamic_refresh': True, |
| + }, |
| + 'example_value': [ |
| + { |
| + 'vendor_id' : 0x0403, |
| + 'product_id' : 0x6001, |
| + }, |
| + { |
| + 'vendor_id' : 0x413c, |
| + 'product_id' : 0x2105, |
| + } |
| + ], |
| + 'id': 317, |
|
vpalatin
2016/03/01 01:54:23
I'm not sure what id I'm supposed to put here.
I h
bartfab (slow)
2016/03/01 14:49:57
You did the right thing, but you could have just l
vpalatin
2016/03/01 17:49:01
Done.
|
| + 'caption': '''white list of USB detachable devices''', |
|
bartfab (slow)
2016/03/01 14:49:57
Nit: s/white list/Whitelist/
vpalatin
2016/03/01 17:49:01
Done.
|
| + 'tags': [], |
|
bartfab (slow)
2016/03/01 14:49:57
I am wondering whether this should be tagged full-
vpalatin
2016/03/01 17:49:01
'system-security' definitely, I will add it.
From
|
| + 'desc': '''Defines the list of USB devices that are allowed to be detached from their kernel driver in order to be used through the chrome.usb API directly inside a web application. Entries are pairs of USB Vendor Identifier and Product Identifier to identify a specific hardware. |
| + |
| + If this policy is not configured, the list of a detachable USB devices is considered as empty.''', |
| + }, |
|
bartfab (slow)
2016/03/01 14:49:57
Note that you need to add this policy to histogram
vpalatin
2016/03/01 17:49:01
I did not understand what I was supposed to do for
bartfab (slow)
2016/03/02 10:40:33
Yes, this is all you had to do.
I was curious abo
|
| ], |
| 'messages': { |
| # Messages that are not associated to any policies. |