mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 03:53:59 -07:00
Fix copy module to reset filesystem acls (#51868)
The controller's fixup_perms2 uses filesystem acls to make the temporary file for copy readable by an unprivileged become user. On Python3, the acls are then copied to the destination filename so we have to remove them from there. We can't remove them prior to the copy because we may not have permission to read the file if the acls are not present. We can't remove them in atomic_move() because the move function shouldn't know anything about controller features. We may want to generalize this into a helper function, though. Fixes #44412 Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
This commit is contained in:
parent
40507220b4
commit
d15812fabf
6 changed files with 131 additions and 4 deletions
2
changelogs/fragments/44412-copy-fix-unwanted-acls.yaml
Normal file
2
changelogs/fragments/44412-copy-fix-unwanted-acls.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- Fix unwanted ACLs when using copy module (https://github.com/ansible/ansible/issues/44412)
|
Loading…
Add table
Add a link
Reference in a new issue