diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-10-03 13:29:20 -0400 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-10-03 13:29:20 -0400 |
commit | 0b507b17a760b21e33fc52ff377db6aa5086c680 (patch) | |
tree | 472861f8e6dd3b70752b26feded8e0246e1103d9 /src/journal/journald-native.c | |
parent | 07c289875fd46331a430c43e8991d3c7407cb703 (diff) |
dbus: add some more safety checks before accepting data from bus clients
Diffstat (limited to 'src/journal/journald-native.c')
-rw-r--r-- | src/journal/journald-native.c | 2 |
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; } |