aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2006-07-05 15:11:17 +0000
committerMartin Schlemmer <azarah@gentoo.org>2006-07-05 15:11:17 +0000
commit86629e856deeedb6aefc7e631406ce5d11655080 (patch)
tree7d12c51b8966c6b29844248c8cab1e1bc64198d9 /src
parentSet NOCOLOR to 'no', else ebuild.sh do not set COLS, etc. (diff)
downloadsandbox-86629e856deeedb6aefc7e631406ce5d11655080.tar.gz
sandbox-86629e856deeedb6aefc7e631406ce5d11655080.tar.bz2
sandbox-86629e856deeedb6aefc7e631406ce5d11655080.zip
Abort on possible security breach.
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r--src/libsandbox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsandbox.c b/src/libsandbox.c
index 7581778..426eb2c 100644
--- a/src/libsandbox.c
+++ b/src/libsandbox.c
@@ -1058,6 +1058,7 @@ static int write_logfile(const char *logfile, const char *func, const char *path
(0 == S_ISREG(log_stat.st_mode))) {
EERROR(color, "SECURITY BREACH", " '%s' %s\n", logfile,
"already exists and is not a regular file!");
+ abort();
} else {
check_dlsym(open_DEFAULT);
logfd = true_open_DEFAULT(logfile, O_APPEND | O_WRONLY |