selinux: fix qrexec-agent restart#211
Conversation
When qrexec-agent restarts, it needs to remove the old socket file before creating the new one. Let the agent do that when SELinux is enabled. Fixes QubesOS/qubes-issues#9982
Remove the socket on stop/restart, do not leave stale socket there. This makes qrexec-client-vm fail more clearly if the agent is not running. The agent still needs to remove it on startup too, to handle restart after a crash too, but lets make it a fallback option, not the only option. Related to QubesOS/qubes-issues#9982
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #211 +/- ##
==========================================
- Coverage 78.87% 78.80% -0.08%
==========================================
Files 55 55
Lines 10519 10519
==========================================
- Hits 8297 8289 -8
- Misses 2222 2230 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
OpenQA test summaryComplete test suite and dependencies: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2025060120-4.3&flavor=pull-requests Test run included the following:
New failures, excluding unstableCompared to: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2025031804-4.3&flavor=update
Failed tests8 failures
Fixed failuresCompared to: https://openqa.qubes-os.org/tests/132953#dependencies 14 fixed
Unstable testsDetails
Performance TestsPerformance degradation:17 performance degradations
Remaining performance tests:39 tests
|
When qrexec-agent restarts, it needs to remove the old socket file before
creating the new one. Let the agent do that when SELinux is enabled.
Fixes QubesOS/qubes-issues#9982
And also, remove the socket on shutdown too.