-
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
A bunch of assorted patches mostly around sss_client #7042
Conversation
bd6ab76
to
0cd99fb
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.
Changes LGTM, Ack. Thank you.
'system' tests fails in PR CI if those patches are built '--with-sssd-user=sssd' and SSSD is run with "sssd.conf::user=sssd". |
Ah, I got it - this is because code relies on |
aeda855
to
8bd5277
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.
Hi, thank you for your work. Please, see minor comments inside.
- CLIENT: remove check for rw-rw-rw- : can you describe in the commit message why it does not make sense?
- PAM: no need in root:root owned socket: s/in/for?
8bd5277
to
72144e2
Compare
72144e2
to
6bac39e
Compare
Hm... actually I'm ok to drop this patch. I mean, what does this check ensure? That file doesn't have 'x'?
Changed. |
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.
CI error is unrelated.
as it doesn't make much sense anyway.
to `sss_cli_make_request_with_checks()` This requires to make sure 'sss_sssd_*id' are initialized in `check_server_cred()`
as a general hardening
out of common module
The only intended client of 'sssd_sudo' is 'sudo' that is suid binary and thus still can access socket. But if for whatever reason it's undesirable to make 'sudo' use its CAP_DAC_OVERRIDE capability then socket mode can be changed to rw-rw-rw -- previous patch will restrict access to the socket for root only. The reason for this change is to avoid the need for CAP_CHOWN for SSSD itself.
from `sss_process_init()` as it's not used anymore
The latter can be zero (example: socket closed during `sss_cli_recv_rep()`)
6bac39e
to
d56db42
Compare
Hi @sumit-bose, I addressed your comments in the latest version. |
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: #7042
|
with the main goal to avoid the need to set ':root' ownership to 'sssd_sudo' socket.
I'm not sure if
sudosrv_cmd()
is the best place to check client creds (91d2f0f)Additionally I'm not sure but probably it's worth to add an artificial delay before closing client's socket - to avoid potential "dos"?
Comments are welcome.