Home
last modified time | relevance | path

Searched refs:env_var (Results 1 – 2 of 2) sorted by relevance

/linux/samples/landlock/
H A Dsandboxer.c92 static int populate_ruleset_fs(const char *const env_var, const int ruleset_fd, in populate_ruleset_fs() argument
102 env_path_name = getenv(env_var); in populate_ruleset_fs()
105 fprintf(stderr, "Missing environment variable %s\n", env_var); in populate_ruleset_fs()
109 unsetenv(env_var); in populate_ruleset_fs()
156 static int populate_ruleset_net(const char *const env_var, const int ruleset_fd, in populate_ruleset_net() argument
166 env_port_name = getenv(env_var); in populate_ruleset_net()
170 unsetenv(env_var); in populate_ruleset_net()
191 static bool check_ruleset_scope(const char *const env_var, in check_ruleset_scope() argument
204 env_type_scope = getenv(env_var); in check_ruleset_scope()
235 unsetenv(env_var); in check_ruleset_scope()
/linux/tools/lib/bpf/
H A Dlibbpf.c232 const char *env_var = "LIBBPF_LOG_LEVEL"; in __base_pr() local
240 verbosity = getenv(env_var); in __base_pr()
250 env_var, verbosity); in __base_pr()