Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert to 'ProtectSystem=strict' in boinc-client.service and make '/tmp' writable #5977

Merged
merged 3 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading