Skip to content

Commit

Permalink
Merge pull request #5977 from computezrmle/revise_boinc-client_service
Browse files Browse the repository at this point in the history
Revert to 'ProtectSystem=strict' in boinc-client.service and make '/tmp' writable
  • Loading branch information
AenBleidd authored Jan 10, 2025
2 parents 627e344 + cd3ad4e commit 5e329cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/scripts/boinc-client.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ After=vboxdrv.service network-online.target
[Service]
Type=simple
ProtectHome=true
ProtectSystem=full
ProtectSystem=strict
ProtectControlGroups=true
ReadWritePaths=-/var/lib/boinc -/etc/boinc-client
ReadWritePaths=-/var/lib/boinc -/etc/boinc-client -/tmp
Nice=10
User=boinc
WorkingDirectory=/var/lib/boinc
Expand Down
3 changes: 2 additions & 1 deletion tests/linux_package_integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ def test_user(self):
def test_selected_values_from_boinc_client_service_file(self):
ts = testset.TestSet("Test selected values from the '/usr/lib/systemd/system/boinc-client.service' file")
data = self._get_key_value_pairs_from_file("/usr/lib/systemd/system/boinc-client.service")
ts.expect_equal(data["ReadWritePaths"], "-/var/lib/boinc -/etc/boinc-client", "Test 'ReadWritePaths' is correctly set")
ts.expect_equal(data["ProtectSystem"], "strict", "Test 'ProtectSystem' is correctly set")
ts.expect_equal(data["ReadWritePaths"], "-/var/lib/boinc -/etc/boinc-client -/tmp", "Test 'ReadWritePaths' is correctly set")
ts.expect_equal(data["User"], "boinc", "Test 'User' is correctly set")
ts.expect_equal(data["WorkingDirectory"], "/var/lib/boinc", "Test 'WorkingDirectory' is correctly set")
ts.expect_equal(data["ExecStart"], "/usr/local/bin/boinc", "Test 'ExecStart' is correctly set")
Expand Down

0 comments on commit 5e329cd

Please sign in to comment.