diff options
Diffstat (limited to 'src/lib/Bcfg2/Client')
-rw-r--r-- | src/lib/Bcfg2/Client/Tools/POSIX/base.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/POSIX/base.py b/src/lib/Bcfg2/Client/Tools/POSIX/base.py index fe30d1a74..1ddfcc230 100644 --- a/src/lib/Bcfg2/Client/Tools/POSIX/base.py +++ b/src/lib/Bcfg2/Client/Tools/POSIX/base.py @@ -16,18 +16,20 @@ except ImportError: try: import posix1e has_acls = True + + # map between permissions characters and numeric ACL constants + acl_map = dict(r=posix1e.ACL_READ, + w=posix1e.ACL_WRITE, + x=posix1e.ACL_EXECUTE) except ImportError: has_acls = False + acl_map = dict() # map between dev_type attribute and stat constants device_map = dict(block=stat.S_IFBLK, char=stat.S_IFCHR, fifo=stat.S_IFIFO) -# map between permissions characters and numeric ACL constants -acl_map = dict(r=posix1e.ACL_READ, - w=posix1e.ACL_WRITE, - x=posix1e.ACL_EXECUTE) class POSIXTool(Bcfg2.Client.Tools.Tool): def fully_specified(self, entry): |