diff options
author | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2013-07-25 15:28:54 +0200 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2013-07-26 09:14:41 +0200 |
commit | 2e7db1befc1375f1f097f9736340205fbc350550 (patch) | |
tree | bdf114c97a3b4eb9a87107426d5f9dac06ccc222 /src/system/dlt-system-options.c | |
parent | 7f18f68cc730024d1053255557cc10c788f8627d (diff) | |
download | DLT-daemon-2e7db1befc1375f1f097f9736340205fbc350550.tar.gz |
Fixed: Security Issue by Command Injection in DLT System.
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'src/system/dlt-system-options.c')
-rw-r--r-- | src/system/dlt-system-options.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/system/dlt-system-options.c b/src/system/dlt-system-options.c index 4d0ae8b..113089b 100644 --- a/src/system/dlt-system-options.c +++ b/src/system/dlt-system-options.c @@ -133,6 +133,9 @@ void init_configuration(DltSystemConfiguration *config) // Common config->ApplicationId = "SYS"; + // Shell + config->Shell.Enable = 0; + // Syslog config->Syslog.Enable = 0; config->Syslog.ContextId = "SYSL"; @@ -244,6 +247,12 @@ int read_configuration_file(DltSystemConfiguration *config, char *file_name) strcpy(config->ApplicationId, value); } + // Shell + else if(strcmp(token, "ShellEnable") == 0) + { + config->Shell.Enable = atoi(value); + } + // Syslog else if(strcmp(token, "SyslogEnable") == 0) { |