mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
2 files changed
+8
-14
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user