You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
State acl.present doesn't allow to set "default" ACLs #22142
P1Priority 1PlatformRelates to OS, containers, platform-based utilities like FS, system based appsState-Modulebugbroken, incorrect, or confusing behaviorfixed-pls-verifyfix is linked, bug author to confirm fixseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
it uses acl.getfacl which doesn't return the "default" ACLs if none has been set
additionaly, even if acl.getfacl did this, the same check can't understand the tree-like structure returned by acl.getfacl in case a default ACL has been set (in this case, acl.getfacl returns a dictionary with a defaults key which then contains the groups and users information related to the default ACL).
I'm willing to propose a fix, but I'd like to have a little guidance here.
I would go this way:
do some parsing around acl_type and detect if we want to set the default ACL or not.
if it does, limit the _current_perm dictionary to the content of the defaults key if it exists or an empty dictionary if it doesn't
then proceed as already done in the state function (get the user, try to see if the permission is already set, etc.)
@multani, I'm not an ACL expert, but your proposed solution seems like the right approach to me. Please feel free to submit a pull request against the oldest release branch applicable, thanks.
Hi here, I have tested manually applying of commit 71d48a4 onto 2015.8.8.2 (Beryllium) (centos from saltstack repo). Default acl is working as expected.
P1Priority 1PlatformRelates to OS, containers, platform-based utilities like FS, system based appsState-Modulebugbroken, incorrect, or confusing behaviorfixed-pls-verifyfix is linked, bug author to confirm fixseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Activity
jfindlay commentedon Mar 30, 2015
@multani, I'm not an ACL expert, but your proposed solution seems like the right approach to me. Please feel free to submit a pull request against the oldest release branch applicable, thanks.
implicitnewt commentedon Sep 3, 2015
Has this bug been addressed?
multani commentedon Sep 3, 2015
I haven't took the time to propose a patch yet, sorry about that... :(
implicitnewt commentedon Sep 3, 2015
Ok fair enough, I'll just package up a bunch of commands for it for now.... not enough time to dig through the code here :(
DylanFrese commentedon Mar 7, 2016
@multani I just ran into this. I haven't used Python before, but I'm willing to put some hours towards a patch if you haven't put one together yet.
multani commentedon Mar 9, 2016
@DylanFrese I had a beginning of a patch somewhere, but I can't find it anymore :/
DylanFrese commentedon Mar 9, 2016
@multani I've created a PR if you want to take a look.
It seems a commit was added in November that did much of what you suggested, but not quite enough.
LuboVarga commentedon May 9, 2016
Hi here, I have tested manually applying of commit 71d48a4 onto 2015.8.8.2 (Beryllium) (centos from saltstack repo). Default acl is working as expected.
jfindlay commentedon May 9, 2016
@LuboVarga, thanks for verifying. If anyone else is still having problems, we can reopen the issue.
timwsuqld commentedon May 9, 2016
@jfindlay Which release can we expect this fix to be in?
jfindlay commentedon May 10, 2016
@timwsuqld, since the fix was made against develop, we should ask @rallytime to consider a backport.
rallytime commentedon May 10, 2016
Sure. Back-port to 2015.8 is in #33139.