projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
service: fix SERVICE_ATTR_NAME usage in service_handle_set
[project/procd.git]
/
jail
/
preload.c
diff --git
a/jail/preload.c
b/jail/preload.c
index
97ac44d
..
24358c6
100644
(file)
--- a/
jail/preload.c
+++ b/
jail/preload.c
@@
-13,12
+13,10
@@
#define _GNU_SOURCE
#include <sys/types.h>
#define _GNU_SOURCE
#include <sys/types.h>
-#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <dlfcn.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <dlfcn.h>
-#include <syslog.h>
#include "seccomp.h"
#include "../preload.h"
#include "seccomp.h"
#include "../preload.h"
@@
-27,11
+25,10
@@
static main_t __main__;
static int __preload_main__(int argc, char **argv, char **envp)
{
static int __preload_main__(int argc, char **argv, char **envp)
{
- uid_t uid = getuid();
char *env_file = getenv("SECCOMP_FILE");
char *env_file = getenv("SECCOMP_FILE");
- if (
uid
) {
-
INFO("preload-seccomp: %s: not root, cannot install seccomp filter\n", *argv
);
+ if (
!env_file || !env_file[0]
) {
+
ERROR("SECCOMP_FILE not specified\n"
);
return -1;
}
return -1;
}