Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #include <errno.h> |
| 18 | #include <stdio.h> |
| 19 | #include <stdlib.h> |
| 20 | #include <string.h> |
| 21 | |
| 22 | #define LOG_TAG "FirewallController" |
| 23 | #define LOG_NDEBUG 0 |
| 24 | |
Lorenzo Colitti | 89faa34 | 2016-02-26 11:38:47 +0900 | [diff] [blame] | 25 | #include <android-base/stringprintf.h> |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 26 | #include <cutils/log.h> |
| 27 | |
| 28 | #include "NetdConstants.h" |
| 29 | #include "FirewallController.h" |
| 30 | |
Lorenzo Colitti | 89faa34 | 2016-02-26 11:38:47 +0900 | [diff] [blame] | 31 | using android::base::StringAppendF; |
| 32 | |
Lorenzo Colitti | 932c44c | 2016-04-24 16:58:02 +0900 | [diff] [blame] | 33 | auto FirewallController::execIptables = ::execIptables; |
Pierre Imai | 62ffdb7 | 2016-05-27 15:51:55 +0900 | [diff] [blame] | 34 | auto FirewallController::execIptablesSilently = ::execIptablesSilently; |
Lorenzo Colitti | 932c44c | 2016-04-24 16:58:02 +0900 | [diff] [blame] | 35 | auto FirewallController::execIptablesRestore = ::execIptablesRestore; |
| 36 | |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 37 | const char* FirewallController::TABLE = "filter"; |
| 38 | |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 39 | const char* FirewallController::LOCAL_INPUT = "fw_INPUT"; |
| 40 | const char* FirewallController::LOCAL_OUTPUT = "fw_OUTPUT"; |
| 41 | const char* FirewallController::LOCAL_FORWARD = "fw_FORWARD"; |
| 42 | |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 43 | const char* FirewallController::LOCAL_DOZABLE = "fw_dozable"; |
| 44 | const char* FirewallController::LOCAL_STANDBY = "fw_standby"; |
Felipe Leme | 3f62434 | 2016-02-10 18:12:39 -0800 | [diff] [blame] | 45 | const char* FirewallController::LOCAL_POWERSAVE = "fw_powersave"; |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 46 | |
Lorenzo Colitti | c8683d7 | 2015-09-01 16:53:35 +0900 | [diff] [blame] | 47 | // ICMPv6 types that are required for any form of IPv6 connectivity to work. Note that because the |
| 48 | // fw_dozable chain is called from both INPUT and OUTPUT, this includes both packets that we need |
| 49 | // to be able to send (e.g., RS, NS), and packets that we need to receive (e.g., RA, NA). |
| 50 | const char* FirewallController::ICMPV6_TYPES[] = { |
| 51 | "packet-too-big", |
| 52 | "router-solicitation", |
| 53 | "router-advertisement", |
| 54 | "neighbour-solicitation", |
| 55 | "neighbour-advertisement", |
| 56 | "redirect", |
| 57 | }; |
| 58 | |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 59 | FirewallController::FirewallController(void) { |
Amith Yamasani | 390e4ea | 2015-04-25 19:08:57 -0700 | [diff] [blame] | 60 | // If no rules are set, it's in BLACKLIST mode |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 61 | mFirewallType = BLACKLIST; |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 62 | } |
| 63 | |
| 64 | int FirewallController::setupIptablesHooks(void) { |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 65 | int res = 0; |
Lorenzo Colitti | 03b23fe | 2017-02-03 18:46:53 +0900 | [diff] [blame^] | 66 | res |= createChain(LOCAL_DOZABLE, getFirewallType(DOZABLE)); |
| 67 | res |= createChain(LOCAL_STANDBY, getFirewallType(STANDBY)); |
| 68 | res |= createChain(LOCAL_POWERSAVE, getFirewallType(POWERSAVE)); |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 69 | return res; |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 70 | } |
| 71 | |
Amith Yamasani | 390e4ea | 2015-04-25 19:08:57 -0700 | [diff] [blame] | 72 | int FirewallController::enableFirewall(FirewallType ftype) { |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 73 | int res = 0; |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 74 | if (mFirewallType != ftype) { |
| 75 | // flush any existing rules |
| 76 | disableFirewall(); |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 77 | |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 78 | if (ftype == WHITELIST) { |
| 79 | // create default rule to drop all traffic |
| 80 | res |= execIptables(V4V6, "-A", LOCAL_INPUT, "-j", "DROP", NULL); |
| 81 | res |= execIptables(V4V6, "-A", LOCAL_OUTPUT, "-j", "REJECT", NULL); |
| 82 | res |= execIptables(V4V6, "-A", LOCAL_FORWARD, "-j", "REJECT", NULL); |
| 83 | } |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 84 | |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 85 | // Set this after calling disableFirewall(), since it defaults to WHITELIST there |
| 86 | mFirewallType = ftype; |
Amith Yamasani | 390e4ea | 2015-04-25 19:08:57 -0700 | [diff] [blame] | 87 | } |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 88 | return res; |
| 89 | } |
| 90 | |
| 91 | int FirewallController::disableFirewall(void) { |
| 92 | int res = 0; |
| 93 | |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 94 | mFirewallType = WHITELIST; |
Amith Yamasani | 390e4ea | 2015-04-25 19:08:57 -0700 | [diff] [blame] | 95 | |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 96 | // flush any existing rules |
| 97 | res |= execIptables(V4V6, "-F", LOCAL_INPUT, NULL); |
| 98 | res |= execIptables(V4V6, "-F", LOCAL_OUTPUT, NULL); |
| 99 | res |= execIptables(V4V6, "-F", LOCAL_FORWARD, NULL); |
| 100 | |
| 101 | return res; |
| 102 | } |
| 103 | |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 104 | int FirewallController::enableChildChains(ChildChain chain, bool enable) { |
| 105 | int res = 0; |
| 106 | const char* name; |
| 107 | switch(chain) { |
| 108 | case DOZABLE: |
| 109 | name = LOCAL_DOZABLE; |
| 110 | break; |
| 111 | case STANDBY: |
| 112 | name = LOCAL_STANDBY; |
| 113 | break; |
Felipe Leme | 3f62434 | 2016-02-10 18:12:39 -0800 | [diff] [blame] | 114 | case POWERSAVE: |
| 115 | name = LOCAL_POWERSAVE; |
| 116 | break; |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 117 | default: |
| 118 | return res; |
| 119 | } |
| 120 | |
| 121 | if (enable) { |
| 122 | res |= attachChain(name, LOCAL_INPUT); |
| 123 | res |= attachChain(name, LOCAL_OUTPUT); |
| 124 | } else { |
| 125 | res |= detachChain(name, LOCAL_INPUT); |
| 126 | res |= detachChain(name, LOCAL_OUTPUT); |
| 127 | } |
| 128 | return res; |
| 129 | } |
| 130 | |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 131 | int FirewallController::isFirewallEnabled(void) { |
| 132 | // TODO: verify that rules are still in place near top |
| 133 | return -1; |
| 134 | } |
| 135 | |
| 136 | int FirewallController::setInterfaceRule(const char* iface, FirewallRule rule) { |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 137 | if (mFirewallType == BLACKLIST) { |
Amith Yamasani | 390e4ea | 2015-04-25 19:08:57 -0700 | [diff] [blame] | 138 | // Unsupported in BLACKLIST mode |
| 139 | return -1; |
| 140 | } |
| 141 | |
JP Abgrall | 69261cb | 2014-06-19 18:35:24 -0700 | [diff] [blame] | 142 | if (!isIfaceName(iface)) { |
| 143 | errno = ENOENT; |
| 144 | return -1; |
| 145 | } |
| 146 | |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 147 | const char* op; |
| 148 | if (rule == ALLOW) { |
| 149 | op = "-I"; |
| 150 | } else { |
| 151 | op = "-D"; |
| 152 | } |
| 153 | |
| 154 | int res = 0; |
| 155 | res |= execIptables(V4V6, op, LOCAL_INPUT, "-i", iface, "-j", "RETURN", NULL); |
| 156 | res |= execIptables(V4V6, op, LOCAL_OUTPUT, "-o", iface, "-j", "RETURN", NULL); |
| 157 | return res; |
| 158 | } |
| 159 | |
| 160 | int FirewallController::setEgressSourceRule(const char* addr, FirewallRule rule) { |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 161 | if (mFirewallType == BLACKLIST) { |
Amith Yamasani | 390e4ea | 2015-04-25 19:08:57 -0700 | [diff] [blame] | 162 | // Unsupported in BLACKLIST mode |
| 163 | return -1; |
| 164 | } |
| 165 | |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 166 | IptablesTarget target = V4; |
| 167 | if (strchr(addr, ':')) { |
| 168 | target = V6; |
| 169 | } |
| 170 | |
| 171 | const char* op; |
| 172 | if (rule == ALLOW) { |
| 173 | op = "-I"; |
| 174 | } else { |
| 175 | op = "-D"; |
| 176 | } |
| 177 | |
| 178 | int res = 0; |
| 179 | res |= execIptables(target, op, LOCAL_INPUT, "-d", addr, "-j", "RETURN", NULL); |
| 180 | res |= execIptables(target, op, LOCAL_OUTPUT, "-s", addr, "-j", "RETURN", NULL); |
| 181 | return res; |
| 182 | } |
| 183 | |
| 184 | int FirewallController::setEgressDestRule(const char* addr, int protocol, int port, |
| 185 | FirewallRule rule) { |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 186 | if (mFirewallType == BLACKLIST) { |
Amith Yamasani | 390e4ea | 2015-04-25 19:08:57 -0700 | [diff] [blame] | 187 | // Unsupported in BLACKLIST mode |
| 188 | return -1; |
| 189 | } |
| 190 | |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 191 | IptablesTarget target = V4; |
| 192 | if (strchr(addr, ':')) { |
| 193 | target = V6; |
| 194 | } |
| 195 | |
| 196 | char protocolStr[16]; |
| 197 | sprintf(protocolStr, "%d", protocol); |
| 198 | |
| 199 | char portStr[16]; |
| 200 | sprintf(portStr, "%d", port); |
| 201 | |
| 202 | const char* op; |
| 203 | if (rule == ALLOW) { |
| 204 | op = "-I"; |
| 205 | } else { |
| 206 | op = "-D"; |
| 207 | } |
| 208 | |
| 209 | int res = 0; |
| 210 | res |= execIptables(target, op, LOCAL_INPUT, "-s", addr, "-p", protocolStr, |
| 211 | "--sport", portStr, "-j", "RETURN", NULL); |
| 212 | res |= execIptables(target, op, LOCAL_OUTPUT, "-d", addr, "-p", protocolStr, |
| 213 | "--dport", portStr, "-j", "RETURN", NULL); |
| 214 | return res; |
| 215 | } |
| 216 | |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 217 | FirewallType FirewallController::getFirewallType(ChildChain chain) { |
| 218 | switch(chain) { |
| 219 | case DOZABLE: |
| 220 | return WHITELIST; |
| 221 | case STANDBY: |
| 222 | return BLACKLIST; |
Felipe Leme | 3f62434 | 2016-02-10 18:12:39 -0800 | [diff] [blame] | 223 | case POWERSAVE: |
| 224 | return WHITELIST; |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 225 | case NONE: |
| 226 | return mFirewallType; |
| 227 | default: |
| 228 | return BLACKLIST; |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | int FirewallController::setUidRule(ChildChain chain, int uid, FirewallRule rule) { |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 233 | char uidStr[16]; |
| 234 | sprintf(uidStr, "%d", uid); |
| 235 | |
| 236 | const char* op; |
Amith Yamasani | 390e4ea | 2015-04-25 19:08:57 -0700 | [diff] [blame] | 237 | const char* target; |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 238 | FirewallType firewallType = getFirewallType(chain); |
Amith Yamasani | 390e4ea | 2015-04-25 19:08:57 -0700 | [diff] [blame] | 239 | if (firewallType == WHITELIST) { |
| 240 | target = "RETURN"; |
Lorenzo Colitti | 932c44c | 2016-04-24 16:58:02 +0900 | [diff] [blame] | 241 | // When adding, insert RETURN rules at the front, before the catch-all DROP at the end. |
Amith Yamasani | 390e4ea | 2015-04-25 19:08:57 -0700 | [diff] [blame] | 242 | op = (rule == ALLOW)? "-I" : "-D"; |
| 243 | } else { // BLACKLIST mode |
| 244 | target = "DROP"; |
Lorenzo Colitti | 932c44c | 2016-04-24 16:58:02 +0900 | [diff] [blame] | 245 | // When adding, append DROP rules at the end, after the RETURN rule that matches TCP RSTs. |
| 246 | op = (rule == DENY)? "-A" : "-D"; |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 247 | } |
| 248 | |
| 249 | int res = 0; |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 250 | switch(chain) { |
| 251 | case DOZABLE: |
| 252 | res |= execIptables(V4V6, op, LOCAL_DOZABLE, "-m", "owner", "--uid-owner", |
| 253 | uidStr, "-j", target, NULL); |
| 254 | break; |
| 255 | case STANDBY: |
| 256 | res |= execIptables(V4V6, op, LOCAL_STANDBY, "-m", "owner", "--uid-owner", |
| 257 | uidStr, "-j", target, NULL); |
| 258 | break; |
Felipe Leme | 3f62434 | 2016-02-10 18:12:39 -0800 | [diff] [blame] | 259 | case POWERSAVE: |
| 260 | res |= execIptables(V4V6, op, LOCAL_POWERSAVE, "-m", "owner", "--uid-owner", |
| 261 | uidStr, "-j", target, NULL); |
| 262 | break; |
Xiaohui Chen | 1cdfa9a | 2015-06-08 16:28:12 -0700 | [diff] [blame] | 263 | case NONE: |
| 264 | res |= execIptables(V4V6, op, LOCAL_INPUT, "-m", "owner", "--uid-owner", uidStr, |
| 265 | "-j", target, NULL); |
| 266 | res |= execIptables(V4V6, op, LOCAL_OUTPUT, "-m", "owner", "--uid-owner", uidStr, |
| 267 | "-j", target, NULL); |
| 268 | break; |
| 269 | default: |
| 270 | ALOGW("Unknown child chain: %d", chain); |
| 271 | break; |
| 272 | } |
| 273 | return res; |
| 274 | } |
| 275 | |
| 276 | int FirewallController::attachChain(const char* childChain, const char* parentChain) { |
| 277 | return execIptables(V4V6, "-t", TABLE, "-A", parentChain, "-j", childChain, NULL); |
| 278 | } |
| 279 | |
| 280 | int FirewallController::detachChain(const char* childChain, const char* parentChain) { |
| 281 | return execIptables(V4V6, "-t", TABLE, "-D", parentChain, "-j", childChain, NULL); |
| 282 | } |
| 283 | |
Lorenzo Colitti | 03b23fe | 2017-02-03 18:46:53 +0900 | [diff] [blame^] | 284 | int FirewallController::createChain(const char* chain, FirewallType type) { |
| 285 | static const std::vector<int32_t> NO_UIDS; |
| 286 | return replaceUidChain(chain, type == WHITELIST, NO_UIDS); |
Jeff Sharkey | d8c6402 | 2012-07-13 18:04:07 -0700 | [diff] [blame] | 287 | } |
Lorenzo Colitti | 89faa34 | 2016-02-26 11:38:47 +0900 | [diff] [blame] | 288 | |
Lorenzo Colitti | f157caf | 2016-05-13 11:25:54 +0900 | [diff] [blame] | 289 | std::string FirewallController::makeUidRules(IptablesTarget target, const char *name, |
| 290 | bool isWhitelist, const std::vector<int32_t>& uids) { |
Lorenzo Colitti | 89faa34 | 2016-02-26 11:38:47 +0900 | [diff] [blame] | 291 | std::string commands; |
Lorenzo Colitti | 89faa34 | 2016-02-26 11:38:47 +0900 | [diff] [blame] | 292 | StringAppendF(&commands, "*filter\n:%s -\n", name); |
| 293 | |
Lorenzo Colitti | 238e818 | 2016-07-26 17:59:41 +0900 | [diff] [blame] | 294 | // Always allow networking on loopback. |
| 295 | StringAppendF(&commands, "-A %s -i lo -o lo -j RETURN\n", name); |
| 296 | |
Lorenzo Colitti | f157caf | 2016-05-13 11:25:54 +0900 | [diff] [blame] | 297 | // Allow TCP RSTs so we can cleanly close TCP connections of apps that no longer have network |
| 298 | // access. Both incoming and outgoing RSTs are allowed. |
| 299 | StringAppendF(&commands, "-A %s -p tcp --tcp-flags RST RST -j RETURN\n", name); |
| 300 | |
Lorenzo Colitti | 89faa34 | 2016-02-26 11:38:47 +0900 | [diff] [blame] | 301 | if (isWhitelist) { |
Lorenzo Colitti | f157caf | 2016-05-13 11:25:54 +0900 | [diff] [blame] | 302 | // Allow ICMPv6 packets necessary to make IPv6 connectivity work. http://b/23158230 . |
| 303 | if (target == V6) { |
| 304 | for (size_t i = 0; i < ARRAY_SIZE(ICMPV6_TYPES); i++) { |
| 305 | StringAppendF(&commands, "-A %s -p icmpv6 --icmpv6-type %s -j RETURN\n", |
| 306 | name, ICMPV6_TYPES[i]); |
| 307 | } |
| 308 | } |
| 309 | |
Lorenzo Colitti | 89faa34 | 2016-02-26 11:38:47 +0900 | [diff] [blame] | 310 | // Always whitelist system UIDs. |
| 311 | StringAppendF(&commands, |
Lorenzo Colitti | f157caf | 2016-05-13 11:25:54 +0900 | [diff] [blame] | 312 | "-A %s -m owner --uid-owner %d-%d -j RETURN\n", name, 0, MAX_SYSTEM_UID); |
Lorenzo Colitti | 89faa34 | 2016-02-26 11:38:47 +0900 | [diff] [blame] | 313 | } |
| 314 | |
Lorenzo Colitti | f157caf | 2016-05-13 11:25:54 +0900 | [diff] [blame] | 315 | // Whitelist or blacklist the specified UIDs. |
| 316 | const char *action = isWhitelist ? "RETURN" : "DROP"; |
Lorenzo Colitti | 89faa34 | 2016-02-26 11:38:47 +0900 | [diff] [blame] | 317 | for (auto uid : uids) { |
| 318 | StringAppendF(&commands, "-A %s -m owner --uid-owner %d -j %s\n", name, uid, action); |
| 319 | } |
| 320 | |
Lorenzo Colitti | f157caf | 2016-05-13 11:25:54 +0900 | [diff] [blame] | 321 | // If it's a whitelist chain, add a default DROP at the end. This is not necessary for a |
| 322 | // blacklist chain, because all user-defined chains implicitly RETURN at the end. |
| 323 | if (isWhitelist) { |
| 324 | StringAppendF(&commands, "-A %s -j DROP\n", name); |
Lorenzo Colitti | 89faa34 | 2016-02-26 11:38:47 +0900 | [diff] [blame] | 325 | } |
| 326 | |
Lorenzo Colitti | 03b23fe | 2017-02-03 18:46:53 +0900 | [diff] [blame^] | 327 | StringAppendF(&commands, "COMMIT\n"); |
Lorenzo Colitti | 89faa34 | 2016-02-26 11:38:47 +0900 | [diff] [blame] | 328 | |
| 329 | return commands; |
| 330 | } |
| 331 | |
| 332 | int FirewallController::replaceUidChain( |
| 333 | const char *name, bool isWhitelist, const std::vector<int32_t>& uids) { |
Lorenzo Colitti | f157caf | 2016-05-13 11:25:54 +0900 | [diff] [blame] | 334 | std::string commands4 = makeUidRules(V4, name, isWhitelist, uids); |
| 335 | std::string commands6 = makeUidRules(V6, name, isWhitelist, uids); |
| 336 | return execIptablesRestore(V4, commands4.c_str()) | execIptablesRestore(V6, commands6.c_str()); |
Lorenzo Colitti | 89faa34 | 2016-02-26 11:38:47 +0900 | [diff] [blame] | 337 | } |