-
Notifications
You must be signed in to change notification settings - Fork 256
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
'selinux_child' return code #7762
Conversation
Previously:
|
Now:
Backend handling of non-zero 'selinux_child' exit status is a bit awkward but works. Should we pack error code always in response and do exit(0) (barring cases of malloc failures)? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Can you check CI failures for Fedora 42 integration? Every other failure is unrelated, but I'm not sure about this one.
thank you for the review. I guess we can't get rid of process exit code because it's the only way to convey result if, for example, malloc fails. |
I wouldn't object to that if it helps SSSD's backends to understand the failure reason and act accordingly.
We should definitely not get rid of the process exit code. |
I'll add one more patch to get rid of a response packet, so that sssd_be will rely solely on exit code. |
0f9e127
to
51fb6df
Compare
@sumit-bose, @ikerexxe, I added a patch to get rid of the response. |
50ced44
to
f912b56
Compare
At a first glance it looks good |
Ok, I tested it manually. 'sssd_be' logs:
'selinux_child' logs:
|
both in current and pre- sssd-2.10.1 code. Let's make it explicit.
rely solely on exit code. This also fixes a bug that exit code wasn't handled before.
f912b56
to
672aa53
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
thanks for the updates, ACK.
bye,
Sumit
Pushed PR: #7762
|
prepare_response()
always sends '0' as a return code