summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-09 04:48:29 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-09 04:48:29 +0000
commit4c7d2cae0118b64f9e6f62e46a2d7212e9303b1d (patch)
tree901a88a579bbe2e07fe944601d8531573bee0845 /components
parent93e8b2ebc4a826b3ba12a6d5065d3447cd446524 (diff)
downloadchromium_src-4c7d2cae0118b64f9e6f62e46a2d7212e9303b1d.zip
chromium_src-4c7d2cae0118b64f9e6f62e46a2d7212e9303b1d.tar.gz
chromium_src-4c7d2cae0118b64f9e6f62e46a2d7212e9303b1d.tar.bz2
Add managed policies for Native Messaging
This adds two new policies that will allow to block all or some native messaging hosts. BUG=237882 Review URL: https://codereview.chromium.org/118253005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243774 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components')
-rw-r--r--components/policy/resources/policy_templates.json60
1 files changed, 59 insertions, 1 deletions
diff --git a/components/policy/resources/policy_templates.json b/components/policy/resources/policy_templates.json
index bfca203..6ef4702 100644
--- a/components/policy/resources/policy_templates.json
+++ b/components/policy/resources/policy_templates.json
@@ -118,7 +118,7 @@
# persistent IDs for all fields (but not for groups!) are needed. These are
# specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs,
# because doing so would break the deployed wire format!
-# For your editing convenience: highest ID currently used: 250
+# For your editing convenience: highest ID currently used: 252
#
# Placeholders:
# The following placeholder strings are automatically substituted:
@@ -2530,6 +2530,64 @@
],
},
{
+ 'name': 'NativeMessaging',
+ 'type': 'group',
+ 'caption': '''Native Messaging''',
+ 'desc': '''Configures policies for Native Messaging. Blacklisted native messaging hosts won't be allowed unless they are whitelisted.''',
+ 'policies': [
+ {
+ 'name': 'NativeMessagingBlacklist',
+ 'type': 'list',
+ 'schema': {
+ 'type': 'array',
+ 'items': { 'type': 'string' },
+ },
+ 'supported_on': ['chrome.*:34-'],
+ 'features': {
+ 'dynamic_refresh': True,
+ 'per_profile': True,
+ },
+ 'example_value': [
+ 'com.native.messaging.host.name1',
+ 'com.native.messaging.host.name2',
+ ],
+ 'id': 251,
+ 'caption': '''Configure native messaging blacklist''',
+ 'desc': '''Allows you to specify which native messaging hosts that should not be loaded.
+
+ A blacklist value of '*' means all native messaging hosts are blacklisted unless they are explicitly listed in the whitelist.
+
+ If this policy is left not set <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> will load all installed native messaging hosts.''',
+ 'label': '''Names of the forbidden native messaging hosts (or * for all)''',
+ },
+ {
+ 'name': 'NativeMessagingWhitelist',
+ 'type': 'list',
+ 'schema': {
+ 'type': 'array',
+ 'items': { 'type': 'string' },
+ },
+ 'supported_on': ['chrome.*:34-'],
+ 'features': {
+ 'dynamic_refresh': True,
+ 'per_profile': True,
+ },
+ 'example_value': [
+ 'com.native.messaging.host.name1',
+ 'com.native.messaging.host.name2',
+ ],
+ 'id': 252,
+ 'caption': '''Configure native messaging whitelist''',
+ 'desc': '''Allows you to specify which native messaging hosts are not subject to the blacklist.
+
+ A blacklist value of * means all native messaging hosts are blacklisted and only native messaging hosts listed in the whitelist will be loaded.
+
+ By default, all native messaging hosts are whitelisted, but if all native messaging hosts have been blacklisted by policy, the whitelist can be used to override that policy.''',
+ 'label': '''Names of the native messaging hosts to exempt from the blacklist''',
+ },
+ ],
+ },
+ {
'name': 'Disable3DAPIs',
'type': 'main',
'schema': { 'type': 'boolean' },