mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
use last entry in acl
This will allow for `effective` permissions to be looked at when the package manager updates the system. ``` $ getfacl httpd/ user::rwx group::--- group:webmaster:r-x #effective:--- mask::--- other::--- ``` Fixes #44932
This commit is contained in:
parent
a811a92b17
commit
0ff52a93dd
1 changed files with 3 additions and 3 deletions
|
@ -144,17 +144,17 @@ def _parse_acl(acl, user, group):
|
|||
# Set the permissions fields
|
||||
octal = 0
|
||||
vals['permissions'] = {}
|
||||
if 'r' in comps[2]:
|
||||
if 'r' in comps[-1]:
|
||||
octal += 4
|
||||
vals['permissions']['read'] = True
|
||||
else:
|
||||
vals['permissions']['read'] = False
|
||||
if 'w' in comps[2]:
|
||||
if 'w' in comps[-1]:
|
||||
octal += 2
|
||||
vals['permissions']['write'] = True
|
||||
else:
|
||||
vals['permissions']['write'] = False
|
||||
if 'x' in comps[2]:
|
||||
if 'x' in comps[-1]:
|
||||
octal += 1
|
||||
vals['permissions']['execute'] = True
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue