Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/system/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/system/selinux_permissive.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zdd
l	Z	e
Zd
Z
ydd
lZeZWnek
r�e	j�Z
nXddlmZmZddlmZd
�Zedkr�e�nd
S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys�
---
module: selinux_permissive
short_description: Change permissive domain in SELinux policy
description:
  - Add and remove a domain from the list of permissive domains.
version_added: "2.0"
options:
  domain:
    description:
        - The domain that will be added or removed from the list of permissive domains.
    type: str
    required: true
    default: ''
    aliases: [ name ]
  permissive:
    description:
        - Indicate if the domain should or should not be set as permissive.
    type: bool
    required: true
  no_reload:
    description:
        - Disable reloading of the SELinux policy after making change to a domain's permissive setting.
        - The default is C(no), which causes policy to be reloaded when a domain changes state.
        - Reloading the policy does not work on older versions of the C(policycoreutils-python) library, for example in EL 6."
    type: bool
    default: no
  store:
    description:
      - Name of the SELinux policy store to use.
    type: str
notes:
    - Requires a recent version of SELinux and C(policycoreutils-python) (EL 6 or newer).
requirements: [ policycoreutils-python ]
author:
- Michael Scherer (@mscherer) <[email protected]>
sn
- name: Change the httpd_t domain to permissive
  selinux_permissive:
    name: httpd_t
    permissive: true
N(t
AnsibleModuletmissing_required_lib(t	to_nativec	C`s�tdtdtdddtddg�dtddd	d
�dtdddt�d
tddd	t��dt�}t}|jd}|jd}|jd}|jd
}ts�|jdtdtd�dt�nyt	j
|�}Wn;tk
r*}|jd|dt|�dt
j��nXdt|�krN|j|�ny|j�}Wn;tk
r�}|jd|dt|�dt
j��nX|r||kr�|js	y|j|�Wq	tk
r}|jd|dt|�dt
j��q	Xnt}q�np||kr�|js|y|j|�Wq|tk
rx}|jd|dt|�dt
j��q|Xnt}n|jd|d|d|d|�dS(Nt
argument_spectdomainttypetstrtrequiredtaliasestnametstoretdefaulttt
permissivetboolt	no_reloadtsupports_check_modetchangedtmsgspolicycoreutils-pythont	exceptiont
set_reload(RtdicttTruetFalsetparamst
HAVE_SEOBJECTt	fail_jsonR	tSEOBJECT_IMP_ERRtseobjecttpermissiveRecordst
ValueErrorR
t	tracebackt
format_exctdirRtget_allt
check_modetaddtdeletet	exit_json(	tmoduleRRRRRtpermissive_domainstetall_domains((sM/usr/lib/python2.7/site-packages/ansible/modules/system/selinux_permissive.pytmainJsT	




,,	/	/	t__main__(t
__future__RRRR
t
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLESR'RR!tNoneR#R$RtImportErrorR(tansible.module_utils.basicRR	tansible.module_utils._textR
R3t__name__(((sM/usr/lib/python2.7/site-packages/ansible/modules/system/selinux_permissive.pyt<module>s&


&

	9

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]