-
Notifications
You must be signed in to change notification settings - Fork 252
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
base: master
Are you sure you want to change the base?
Conversation
both in current and pre- sssd-2.10.1 code. Let's make it explicit.
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. |
prepare_response()
always sends '0' as a return code