projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add AES-256-GCM support to SPTPS.
[tinc]
/
src
/
script.c
diff --git
a/src/script.c
b/src/script.c
index
3f44bf9
..
2f2c30b
100644
(file)
--- a/
src/script.c
+++ b/
src/script.c
@@
-26,6
+26,7
@@
#include "names.h"
#include "script.h"
#include "xalloc.h"
#include "names.h"
#include "script.h"
#include "xalloc.h"
+#include "sandbox.h"
#ifdef HAVE_PUTENV
static void unputenv(const char *p) {
#ifdef HAVE_PUTENV
static void unputenv(const char *p) {
@@
-141,6
+142,10
@@
void environment_exit(environment_t *env) {
}
bool execute_script(const char *name, environment_t *env) {
}
bool execute_script(const char *name, environment_t *env) {
+ if(!sandbox_can(START_PROCESSES, RIGHT_NOW)) {
+ return false;
+ }
+
char scriptname[PATH_MAX];
char *command;
char scriptname[PATH_MAX];
char *command;