eb-local.foreign¶
- module eb-local.foreign src/foreign.zig[source][autodoc]¶
Host and container paths that must not leak into a build.
eb-local doctorreports entries ofPERL5LIB,PYTHONPATH,R_LIBS*,JULIA_LOAD_PATH,JULIA_DEPOT_PATH,NODE_PATH,CMAKE_PREFIX_PATHandPKG_CONFIG_PATH, and compiler-wrapper variables, that resolve outside the approved prefixes.CARGO_TARGET_*_LINKER,CARGO_BUILD_RUSTC_WRAPPER,RUSTC_WORKSPACE_WRAPPER,R_MAKEVARS_USERandR_MAKEVARS_SITEare wrapper variables.RUSTFLAGSandCARGO_TARGET_*_RUSTFLAGSare flag strings, so they are not paths. It also reports the timezone/etc/localtimeresolves to, a bind mount of that file, and host library directories a container runtime injected. A build drops the foreign entries only whenbuild.clear_foreign_prefixesis set.
Types¶
Functions¶
- pub fn approvedPrefixes(a: Allocator, env: *const std.process.Environ.Map, extra: []const []const u8, install_prefix: []const u8) Allocator.Error![]const []const u8[source][autodoc]¶
Prefixes a path may sit under: the EESSI repository, the install prefix, the four EESSI install variables,
extra(the site’s approved prefixes), eb-local’s RPATH wrapper directory and its cache.
- pub fn scan(a: Allocator, env: *const std.process.Environ.Map, prefixes: []const []const u8, clear: bool, mountinfo: []const u8) Allocator.Error![]Finding[source][autodoc]¶
Findings for this shell.
clearselects the words doctor uses; it does not change the environment.
- pub fn scrub(a: Allocator, env: *std.process.Environ.Map, prefixes: []const []const u8) Allocator.Error!void[source][autodoc]¶
Drop foreign entries from
env. An empty path list is removed. A compiler-wrapper variable that resolves outside the prefixes is removed. Approved entries stay. Nothing is added.