mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
Disable make sandobxing unless .STRICT=1
This change makes Landlock Make backwards compatible.
This commit is contained in:
parent
d5910e2673
commit
c424352a0a
1 changed files with 3 additions and 1 deletions
4
third_party/make/job.c
vendored
4
third_party/make/job.c
vendored
|
@ -1908,7 +1908,9 @@ child_execute_job (struct childbase *child,
|
|||
(STRING_SIZE_TUPLE (".INTERNET"),
|
||||
c ? c->file : 0, "0"));
|
||||
|
||||
unsandboxed = parse_bool (get_target_variable
|
||||
unsandboxed = !get_target_variable(STRING_SIZE_TUPLE (".STRICT"),
|
||||
c->file, 0) ||
|
||||
parse_bool (get_target_variable
|
||||
(STRING_SIZE_TUPLE (".UNSANDBOXED"),
|
||||
c ? c->file : 0, "0"));
|
||||
|
||||
|
|
Loading…
Reference in a new issue