There was an error while loading. Please reload this page.
1 parent 8e2e77f commit 9a046dfCopy full SHA for 9a046df
1 file changed
codex-cli/src/utils/agent/sandbox/macos-seatbelt.ts
@@ -3,7 +3,6 @@ import type { SpawnOptions } from "child_process";
3
4
import { exec } from "./raw-exec.js";
5
import { log } from "../log.js";
6
-import { realpathSync } from "fs";
7
import { CONFIG_DIR } from "src/utils/config.js";
8
9
function getCommonRoots() {
@@ -30,9 +29,7 @@ export function execWithSeatbelt(
30
29
const { policies, params } = writableRoots
31
.map((root, index) => ({
32
policy: `(subpath (param "WRITABLE_ROOT_${index}"))`,
33
- // the kernel resolves symlinks before handing them to seatbelt for checking
34
- // so store the canonicalized form in the policy to be compared against
35
- param: `-DWRITABLE_ROOT_${index}=${realpathSync(root)}`,
+ param: `-DWRITABLE_ROOT_${index}=${root}`,
36
}))
37
.reduce(
38
(
0 commit comments