mirror of https://github.com/ansible/ansible.git
[become] Fix solaris permissions regression
Change: - Regression introduced in #70785 - When macOS chmod ACL syntax is used, Solaris-derived chmods return with a status of 5. This is also used for our sshpass handling, because sshpass will return 5 on auth failure. This means on Solaris, we incorrectly assume auth failure when we reach this branch of logic and try to run chmod with macOS syntax. - We now wrap this specific use of chmod in an exception handler that looks for AnsibleAuthenticationFailure and skips over it. This adds another authentication attempt (something we normally avoid to prevent account lockout), but seems better than the regression of not allowing other fallbacks to be used. - Without this patch, if setfacl fails on Solaris (and sshpass is used), we do not try common_remote_group or world-readable tmpdir fallbacks. Test Plan: - New unit Signed-off-by: Rick Elrod <rick@elrod.me>pull/74340/head
parent
7786dbbdc1
commit
7d64aebdd3
@ -0,0 +1,4 @@
|
|||||||
|
bugfixes:
|
||||||
|
- >-
|
||||||
|
become - fix a regression on Solaris where chmod can return 5 which we
|
||||||
|
interpret as auth failure and stop trying become tmpdir permission fallbacks
|
Loading…
Reference in New Issue