%PDF- %PDF-
| Direktori : /proc/self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/salt/states/win_dacl.pyo |
�
���^c @@ s_ d Z d d l m Z m Z m Z d Z d � Z d � Z d � Z e d � Z
e d � Z d S(
u�
Windows Object Access Control Lists
Ensure an ACL is present
parameters:
name - the path of the object
objectType - Registry/File/Directory
user - user account or SID for the ace
permission - permission for the ace (see module win_acl for available permissions for each objectType)
acetype - Allow/Deny
propagation - how the ACL should apply to child objects (see module win_acl for available propagation types)
.. code-block:: yaml
addAcl:
win_dacl.present:
- name: HKEY_LOCAL_MACHINE\SOFTWARE\mykey
- objectType: Registry
- user: FakeUser
- permission: FullControl
- acetype: ALLOW
- propagation: KEY&SUBKEYS
Ensure an ACL does not exist
parameters:
name - the path of the object
objectType - Registry/File/Directory
user - user account or SID for the ace
permission - permission for the ace (see module win_acl for available permissions for each objectType)
acetype - Allow/Deny
propagation - how the ACL should apply to child objects (see module win_acl for available propagation types)
.. code-block:: yaml
removeAcl:
win_dacl.absent:
- name: HKEY_LOCAL_MACHINE\SOFTWARE\mykey
- objectType: Registry
- user: FakeUser
- permission: FulLControl
- acetype: ALLOW
- propagation: KEY&SUBKEYS
Ensure an object is inheriting permissions
parameters:
name - the path of the object
objectType - Registry/File/Directory
clear_existing_acl - True/False - when inheritance is enabled, should the existing ACL be kept or cleared out
.. code-block:: yaml
eInherit:
win_dacl.enableinheritance:
- name: HKEY_LOCAL_MACHINE\SOFTWARE\mykey
- objectType: Registry
- clear_existing_acl: True
Ensure an object is not inheriting permissions
parameters:
name - the path of the object
objectType - Registry/File/Directory
copy_inherited_acl - True/False - if inheritance is enabled, should the inherited permissions be copied to the ACL when inheritance is disabled
.. code-block:: yaml
dInherit:
win_dacl.disableinheritance:
- name: HKEY_LOCAL_MACHINE\SOFTWARE\mykey
- objectType: Registry
- copy_inherited_acl: False
i ( t absolute_importt unicode_literalst print_functionu win_daclc C@ s d t k r d St S( u6
Load this state if the win_acl module exists
u win_dacl.add_aceu win_dacl( t __salt__t False( ( ( s8 /usr/lib/python2.7/site-packages/salt/states/win_dacl.pyt __virtual__O s c C@ sY i | d 6t d 6i d 6d d 6} t d | | | | | | t � } | d r=| d st d r� d | d <d | d <d
j | | | | � | d d <| St d | | | | | | � } | d r� t | d <t | d | d � | d <q:t | d <d
j | d | d g � | d <qUt d rUd | d <d | d <qUn t | d <| d | d <| S( u"