Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Unified Diff: components/policy/resources/policy_templates.json

Issue 1714473002: Add usb_detachable_whitelist to device policy proto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update the policy_templates.json file and the policy decoder code Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698