config: Don't pass configuration file argument to action

Due to security risk that a compromised Plinth process will give adversary the
ability to write to any file on the system.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa committed 2019-03-01 13:23:04 -08:00
1 parent d1d3eae3db
commit 2aef91b187
2 files changed
+8 -14

No files matched your search

+1 -2
View File
@@ -124,8 +124,7 @@ def _migrate_home_page_config():
home_page_path = get_home_page().replace('_', '/')
# Reset the home page to plinth in freedombox.conf
actions.superuser_run(
'config', ['reset-home-page', '--config', FREEDOMBOX_APACHE_CONFIG])
actions.superuser_run('config', ['reset-home-page'])
# Write the home page setting into the new conf file
# This step is run at the end because it reloads the Apache server