Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix wrong 'recurse' behavior on for linux_acl.present/absent states #49532
What does this PR do?
This PR fixes an issue on the behavior of the
Currently, when the
Given this SLS file:
change_acls_for_user: acl.present: - name: /srv/acl_test - acl_type: user - acl_name: salt - perms: rw - recurse: True
And we have this ACL setup on
# find /srv/acl_test/ /srv/acl_test/ /srv/acl_test/test1 /srv/acl_test/test2 # getfacl -R /srv/acl_test # file: srv/acl_test/ # owner: tomcat # group: tomcat user::rwx user:salt:rw- group::r-x mask::rwx other::r-x # file: srv/acl_test/test2 # owner: root # group: root user::rwx group::r-x other::r-x # file: srv/acl_test/test1 # owner: root # group: root user::rwx group::r-x other::r-x
As you can see the defined
So, if I apply the previous state on the SLS now, I would expect those the subdirectories will be fixed with the right ACL but they won't. Salt will report that
But in case the main
Now with this PR, both
Commits signed with GPG?