summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-10-03 13:29:20 -0400
committerLennart Poettering <lennart@poettering.net>2012-10-03 13:29:20 -0400
commit0b507b17a760b21e33fc52ff377db6aa5086c680 (patch)
tree472861f8e6dd3b70752b26feded8e0246e1103d9 /src/journal
parent07c289875fd46331a430c43e8991d3c7407cb703 (diff)
dbus: add some more safety checks before accepting data from bus clients
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journald-native.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-native.c b/src/journal/journald-native.c
index 12fb980dd6..de8d6998cf 100644
--- a/src/journal/journald-native.c
+++ b/src/journal/journald-native.c
@@ -314,7 +314,7 @@ void server_process_native_file(
return;
}
- if (strchr(e, '/')) {
+ if (!filename_is_safe(e)) {
log_error("Received file in subdirectory of allowed directories. Refusing.");
return;
}