summaryrefslogtreecommitdiff
path: root/src/system/dlt-system-options.c
diff options
context:
space:
mode:
authorAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2013-07-25 15:28:54 +0200
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2013-07-26 09:14:41 +0200
commit2e7db1befc1375f1f097f9736340205fbc350550 (patch)
treebdf114c97a3b4eb9a87107426d5f9dac06ccc222 /src/system/dlt-system-options.c
parent7f18f68cc730024d1053255557cc10c788f8627d (diff)
downloadDLT-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.c9
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)
{