From 03b4a78fd0cb9ce61799ab631a4a4715938732e2 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 18 Feb 2026 16:38:25 -0800 Subject: [PATCH] quassel: Explicitly set permissions on the domain configuration file Closes: #2564 Tests: - Changing the domain name in quassel app page set the expected file permissions. Changing the value in the code results in file getting created with changed permissions. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/quassel/privileged.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plinth/modules/quassel/privileged.py b/plinth/modules/quassel/privileged.py index bab66e9dd..c5b4e29e3 100644 --- a/plinth/modules/quassel/privileged.py +++ b/plinth/modules/quassel/privileged.py @@ -11,3 +11,5 @@ def set_domain(domain_name: str): """Write a file containing domain name.""" domain_file = pathlib.Path('/var/lib/quassel/domain-freedombox') domain_file.write_text(domain_name, encoding='utf-8') + # Ensure that that file is readable by non-privileged process. + domain_file.chmod(0o644)