summaryrefslogtreecommitdiffstats
path: root/ipaaction/ipaaction_example_policy.xml
blob: 810b0027874ffd363f29985fa78ed0ff3a8ad526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="UTF-8"?>
<ipa xmlns="http://freeipa.org/xml/rng/ipaaction/1.0"> 
  <metadata>
    <name>simple ipaaction example</name>
    <author>sbose@redhat.com</author>
    <version>0.7071</version>
    <RNGfile>ipaaction.rng</RNGfile>
    <XSLTfile>ipaaction.xsl</XSLTfile>
    <app>ipaaction</app>
  </metadata>

  <ipaaction>
    <condition>
     <command>/usr/bin/test -e /etc/redhat-release</command> 
     <user>nobody</user>
    </condition>
    <file>
      <url>http://my.server.org/something.txt</url>
      <path>/tmp/something.txt</path>
      <owner>nobody</owner>
      <group>nobody</group>
      <access>0444</access>
      <selinux_context>unconfined_u:object_r:user_home_t:s0</selinux_context>
      <acl>user:dummy:rw-</acl>
      <acl>user:admin:rw-</acl>
      <cleanup>no</cleanup>
    </file>
    <run>
      <command>/bin/rm /tmp/something.txt</command>
      <user>root</user>
    </run> 
  </ipaaction>

</ipa>