projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
seccomp: Improve error message
[project/procd.git]
/
jail
/
preload.c
diff --git
a/jail/preload.c
b/jail/preload.c
index
5466f27
..
24358c6
100644
(file)
--- a/
jail/preload.c
+++ b/
jail/preload.c
@@
-27,6
+27,11
@@
static int __preload_main__(int argc, char **argv, char **envp)
{
char *env_file = getenv("SECCOMP_FILE");
+ if (!env_file || !env_file[0]) {
+ ERROR("SECCOMP_FILE not specified\n");
+ return -1;
+ }
+
if (install_syscall_filter(*argv, env_file))
return -1;