

























@@ -30,16 +30,17 @@ describe("resolveExecWrapperTrustPlan", () => {
3030},
3131},
3232{
33-name: "unwraps script wrappers before evaluating nested shell payloads",
33+name: "blocks script wrappers before evaluating nested shell payloads",
3434enabled: process.platform === "darwin" || process.platform === "freebsd",
3535argv: ["/usr/bin/script", "-q", "/dev/null", "sh", "-c", "echo hi"],
3636expected: {
37-argv: ["sh", "-c", "echo hi"],
38-policyArgv: ["sh", "-c", "echo hi"],
39-wrapperChain: ["script"],
40-policyBlocked: false,
41-shellWrapperExecutable: true,
42-shellInlineCommand: "echo hi",
37+argv: ["/usr/bin/script", "-q", "/dev/null", "sh", "-c", "echo hi"],
38+policyArgv: ["/usr/bin/script", "-q", "/dev/null", "sh", "-c", "echo hi"],
39+wrapperChain: [],
40+policyBlocked: true,
41+blockedWrapper: "script",
42+shellWrapperExecutable: false,
43+shellInlineCommand: null,
4344},
4445},
4546{
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。