projects
/
oweals
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f9b174
)
seccomp: Improve error message
author
Michal Sojka
<sojkam1@fel.cvut.cz>
Tue, 12 Sep 2017 11:12:45 +0000
(13:12 +0200)
committer
John Crispin
<john@phrozen.org>
Thu, 28 Sep 2017 06:26:56 +0000
(08:26 +0200)
Print "SECCOMP_FILE not specified" instead of "failed to load (null)".
Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
jail/preload.c
patch
|
blob
|
history
diff --git
a/jail/preload.c
b/jail/preload.c
index 5466f27d0ba5b5b6a9723d0113e12061ec6dd295..24358c6bc30482a97a26c6b4999004ca3d2d822c 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;