%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/win_dacl.pyo

�
���^c@@s_dZddlmZmZmZdZd�Zd�Zd�Ze	d�Z
ed�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(tabsolute_importtunicode_literalstprint_functionuwin_daclcC@sdtkrdStS(u6
    Load this state if the win_acl module exists
    uwin_dacl.add_aceuwin_dacl(t__salt__tFalse(((s8/usr/lib/python2.7/site-packages/salt/states/win_dacl.pyt__virtual__Osc	C@sYi|d6td6id6dd6}td||||||t�}|dr=|dstdr�d|d<d	|d<d
j||||�|dd<|Std||||||�}|dr�t|d<t|d|d�|d<q:t|d<d
j|d|dg�|d<qUtdrUd|d<d|d<qUnt|d<|d|d<|S(u"
    Ensure an ACE is present
    unameuresultuchangesuucommentuwin_dacl.check_aceuExistsutestuThe ACE is set to be added.u{0} {1} {2} on {3}u
Added ACEsuwin_dacl.add_aceu uThe ACE is present.N(tTrueRt__opts__tNonetformattdictRtjoin(	tnamet
objectTypetusert
permissiontacetypetpropagationtretttRettaddRet((s8/usr/lib/python2.7/site-packages/salt/states/win_dacl.pytpresentVs2

"







$


c	C@sYi|d6td6id6dd6}td||||||t�}|dr=|drtdr�d|d<d	|d<d
j||||�|dd<|Std||||||�}|dr�t|d<t|d|d�|d<q:t|d<d
j|d|dg�|d<qUtdrUd|d<d|d<qUnt|d<|d|d<|S(u&
    Ensure an ACL does not exist
    unameuresultuchangesuucommentuwin_dacl.check_aceuExistsutestuThe ACE is set to be removed.u{0} {1} {2} on {3}uRemoved ACEsuwin_dacl.rm_aceu uThe ACE is not present.N(RRRRR	R
RR(	RR
RRRRRRR((s8/usr/lib/python2.7/site-packages/salt/states/win_dacl.pytabsentys2

"







$


cC@sIi|d6td6id6dd6}td||�}|dr-|ds	tdr�d|d<d	|dd<d
|d<|r�dnd|dd
<|Std|||�}|dr�t|d<t|d|d�|d<q*t|d<dj|d|dg�|d<qEtdrEd|d<d|d<qEnt|d<|d|d<|S(u=
    Ensure an object is inheriting ACLs from its parent
    unameuresultuchangesuucommentuwin_dacl.check_inheritanceuInheritanceutestuEnabledu!Inheritance is set to be enabled.uAre set to be removeduAre set to be keptu
Existing ACLsuwin_dacl.enable_inheritanceu uInheritance is enabled.N(RRRRR
RR(RR
tclear_existing_aclRRteRet((s8/usr/lib/python2.7/site-packages/salt/states/win_dacl.pytinherit�s2









$


cC@sCi|d6td6id6dd6}td||�}|dr'|drtdr�d|d<d	|dd<d
|d<|r�dnd|dd
<|Std|||�}|d|d<|dr�t|d|d�|d<q$dj|d|dg�|d<q?tdr?d|d<d|d<q?nt|d<|d|d<|S(uA
    Ensure an object is not inheriting ACLs from its parent
    unameuresultuchangesuucommentuwin_dacl.check_inheritanceuInheritanceutestuDisabledu"Inheritance is set to be disabled.uAre set to be keptuAre set to be removeduInherited ACLsuwin_dacl.disable_inheritanceu uInheritance is disabled.N(RRRRR
RR(RR
tcopy_inherited_aclRRR((s8/usr/lib/python2.7/site-packages/salt/states/win_dacl.pyt
disinherit�s0







$


N(
t__doc__t
__future__RRRt__virtualname__RRRRRRR(((s8/usr/lib/python2.7/site-packages/salt/states/win_dacl.pyt<module>Hs		#	##

Zerion Mini Shell 1.0