blob: 512dd861f4a771a255aa42786b178907c49ab5ea [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This features file defines permissions for extension APIs implemented
// under src/extensions.
// See extensions/common/features/* to understand this file, in particular
// feature.h, simple_feature.h, and base_feature_provider.h.
// To add a new whitelisted ID, SHA-1 it and force it to uppercase. In Bash:
//
// $ echo -n "aaaabbbbccccddddeeeeffffgggghhhh" | \
// sha1sum | tr '[:lower:]' '[:upper:]'
// 9A0417016F345C934A1A88F55CA17C05014EEEBA -
//
// Google employees: please update http://go/chrome-api-whitelist to map
// hashes back to ids.
// If you add a new platform_app permission please update the "stubs_app" test:
// chrome/test/data/extensions/api_test/stubs_app/manifest.json
{
"dns": [
{
"channel": "dev",
"extension_types": ["extension", "platform_app"]
},
{
"channel": "stable",
"extension_types": ["extension", "platform_app"],
"whitelist": [
"7AE714FFD394E073F0294CFA134C9F91DB5FBAA4", // CCD Development
"C7DA3A55C2355F994D3FDDAD120B426A0DF63843", // CCD Testing
"75E3CFFFC530582C583E4690EF97C70B9C8423B7" // CCD Release
]
}
],
"hid": [
{
"channel": "stable",
"extension_types": ["platform_app"]
},
{
"channel": "stable",
"extension_types": ["extension"],
"whitelist": [
"496B6890097EB6E19809ADEADD095A8721FBB2E0", // FIDO U2F APIs
"E24F1786D842E91E74C27929B0B3715A4689A473" // CryptoToken
]
}
],
"power": {
"channel": "stable",
"extension_types": [ "extension", "legacy_packaged_app", "platform_app" ]
},
// Note: runtime is not actually a permission, but some systems check these
// values to verify restrictions.
"runtime": {
"channel": "stable",
"extension_types": ["extension", "legacy_packaged_app", "platform_app"]
},
"serial": {
"channel": "stable",
"extension_types": ["platform_app"]
},
"socket": [
{
"channel": "stable",
"extension_types": ["platform_app"]
},
{
"channel": "stable",
"extension_types": ["extension"],
"whitelist": [
// The connectivity diagnostic utility is a component extension that is
// used to try to provide suggestions on how to fix connection issues.
// It should be the only non-app allowed to use the socket API.
"32A1BA997F8AB8DE29ED1BA94AAF00CF2A3FEFA7"
]
}
],
"storage": {
"channel": "stable",
"extension_types": ["extension", "legacy_packaged_app", "platform_app"],
"min_manifest_version": 2
},
"usb": [
{
"channel": "stable",
"extension_types": ["platform_app"]
},
{
"channel": "stable",
"extension_types": ["extension"],
"whitelist": [
"496B6890097EB6E19809ADEADD095A8721FBB2E0", // FIDO U2F APIs
"E24F1786D842E91E74C27929B0B3715A4689A473" // CryptoToken
]
}
],
"usbDevices": [
{
"channel": "stable",
"extension_types": ["platform_app"]
},
{
"channel": "stable",
"extension_types": ["extension"],
"whitelist": [
"496B6890097EB6E19809ADEADD095A8721FBB2E0", // FIDO U2F APIs
"E24F1786D842E91E74C27929B0B3715A4689A473" // CryptoToken
]
}
]
}