interfaces/builtin/microceph_support.go: do not log sudo attempt - #16950
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #16950 +/- ##
=======================================
Coverage 79.04% 79.05%
=======================================
Files 1375 1372 -3
Lines 191012 190936 -76
Branches 2465 2465
=======================================
- Hits 150981 150938 -43
+ Misses 30924 30907 -17
+ Partials 9107 9091 -16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thu May 7 15:34:04 UTC 2026 Failures:Preparing:
Executing:
Restoring:
Skipped tests from snapd-testing-skipIf you wish to have any of the below tests run in your PR, in your PR description, add 'unskip:' followed by a copy-and-pasted list (without variants) of the below tests you wish to run (unskip plus test list must be valid yaml)
|
alfonsosanchezbeato
left a comment
There was a problem hiding this comment.
LGTM, thanks
|
We got confirmation that it works as intended. |
jslarraz
left a comment
There was a problem hiding this comment.
I don't really love this change. I don't know how hard it would be to change osd to conditionally skip the "sudo" path if running inside a snap (i.e. $SNAP is set), but it looks like a better solution for the mid term.
Considering it is -support interface, I'm ok with this for now.
osd in microceph attempts to call sudo, which is denied. But that is known, and it spams the logs. Explicitly denying without "audit" will make it silent.
bc46aae to
fea6335
Compare
osd in microceph attempts to call sudo, which is denied. But that is known, and it spams the logs. Explicitly denying without "audit" will make it silent.
Requested from https://forum.snapcraft.io/t/suppress-audit-logging/51065