diff options
author | Sam Doran <sdoran@redhat.com> | 2021-01-11 01:55:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 00:55:15 -0600 |
commit | b22d97b2c1cb03d1ab112196bd931ee83ef2485d (patch) | |
tree | d20ab1e34bda7322caf4f09cd211dc4ca827c37b /changelogs | |
parent | 1cd09b1ebcba3f54d31bdb0cf884bb2ab02d26d3 (diff) | |
download | ansible-b22d97b2c1cb03d1ab112196bd931ee83ef2485d.tar.gz |
[stable-2.10] Fix string/bytestring comparsion in m_u.basic (#70439) (#73129)
Change:
- module_utils.basic.is_special_selinux_path() used a string ==
bytestring comparison which returned False and made Ansible think that
certain filesystems aren't, in fact, special-cased, when they should
be. Ensure both sides of the == are bytestrings.
Test Plan:
- Added `copy` integration tests for this case.
Tickets:
- Fixes #70244
Signed-off-by: Rick Elrod <rick@elrod.me>.
(cherry picked from commit 688cd8657bcd4610aa268913be67e76778bc6940)
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/fragments/70244-selinux-special-fs.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/changelogs/fragments/70244-selinux-special-fs.yml b/changelogs/fragments/70244-selinux-special-fs.yml new file mode 100644 index 0000000000..e4a596bb64 --- /dev/null +++ b/changelogs/fragments/70244-selinux-special-fs.yml @@ -0,0 +1,2 @@ +bugfixes: + - Fix bytestring vs string comparison in module_utils.basic.is_special_selinux_path() so that special-cased filesystems which don't support SELinux context attributes still allow files to be manipulated on them. (https://github.com/ansible/ansible/issues/70244) |