)]}'
{
  "commit": "e02771bfc26eb9af50d6e7aeeda8bb4bdf949876",
  "tree": "fd95d9617d2df035590e81bed67a097b2fdd0685",
  "parents": [
    "b8768c615e0a505114c2cf209183843dbc832075"
  ],
  "author": {
    "name": "Googler",
    "email": "noreply@google.com",
    "time": "Mon Oct 26 06:47:03 2026 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Mon Oct 26 06:48:48 2026 -0700"
  },
  "message": "Restrict CcStarlarkInternal.absoluteSymlink to configured FDO and Propeller paths.\n\n`CcStarlarkInternal.absoluteSymlink` (`cc_common.absolute_symlink`) is only used by C++ toolchain FDO and Propeller profile rules (`fdo_context.bzl`) to create symlinks to profile paths configured in `CppConfiguration` (`fdo_path()`, `cs_fdo_path()`, `propeller_optimize_absolute_cc_profile()`, and `propeller_optimize_absolute_ld_profile()`). However, because `cc_common.absolute_symlink` only checked the package allowlist (`//third_party/bazel_rules/rules_cc/...`), any Starlark file under `rules_cc` could call `cc_common.absolute_symlink` with an arbitrary `target_path` without setting any FDO command-line flags, creating symlinks to arbitrary filesystem paths that action execution follows when uploading inputs.\n\nValidate in `CcStarlarkInternal.absoluteSymlink` that `targetPath` matches one of the configured FDO or Propeller absolute profile paths on `CppConfiguration`, throwing an `EvalException` otherwise.\n\nPiperOrigin-RevId: 1007242396\nChange-Id: I938d8e4b04f0edc8bb40e6e03e98731040d7b392\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "21e10b2f2b15e707637e592e6e50c10c8d55384c",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/rules/cpp/CcStarlarkInternal.java",
      "new_id": "ae69ecd6d7252e4fd5bb0a5bbace45d18decdf72",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/rules/cpp/CcStarlarkInternal.java"
    },
    {
      "type": "modify",
      "old_id": "56e11b9e2669d3191d6c135740392b5b5fdc3c7e",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java",
      "new_id": "163346d3e2476d9dcd9ee73fb743d3e1bfd7b5ec",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java"
    },
    {
      "type": "modify",
      "old_id": "8a2e2ae6733ec58934d673e84b4147b6e682e36a",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/rules/cpp/CppConfigurationStarlarkTest.java",
      "new_id": "c8630579fc70467527224d218c235906c96d8bfd",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/rules/cpp/CppConfigurationStarlarkTest.java"
    }
  ]
}
