-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
savecore: add missing call to cap_openlog when in capabilities mode #1546
base: main
Are you sure you want to change the base?
savecore: add missing call to cap_openlog when in capabilities mode #1546
Conversation
Signed-off-by: Stéphane Rochoy <stephane.rochoy@stormshield.eu>
e775981
to
3d688bd
Compare
I'm looking to add a test as it should be trivial. |
Oh yes I didn't notice the Draft tag. The C change itself looks good :) |
git rebase -i main |
81e3954
to
41a32d6
Compare
Sorry for the initial noise. I cleaned the commits. But one question remain about the test I propose to add: what is the proper way to test the instance of |
Signed-off-by: Stéphane Rochoy <stephane.rochoy@stormshield.eu>
41a32d6
to
e03cff4
Compare
@oshogbo Do you have an opinion on this? Do you want me to just ignore |
When run in capabilities mode,
savecore
seems to lack a call tocap_openlog
. Notably it break the use ofLOG_PERROR
.With the original one:
With the patched one: