diff options
author | Sumit Bose <sbose@nb.localdomain> | 2008-11-03 10:25:37 +0100 |
---|---|---|
committer | Sumit Bose <sbose@nb.localdomain> | 2008-11-03 10:25:37 +0100 |
commit | 9be8b9551d588bfbf6b20aa8105fb2e9e882e021 (patch) | |
tree | da224e5addb2b7bea260b3e93701e17ca51d4fe7 /selinux_booleans | |
parent | fee766c9c4f80fb69ee0d39c3b6f1a177cc93bd8 (diff) | |
download | ipa_policy-9be8b9551d588bfbf6b20aa8105fb2e9e882e021.tar.gz ipa_policy-9be8b9551d588bfbf6b20aa8105fb2e9e882e021.tar.xz ipa_policy-9be8b9551d588bfbf6b20aa8105fb2e9e882e021.zip |
added license information
Diffstat (limited to 'selinux_booleans')
-rw-r--r-- | selinux_booleans/selinux_booleans.rng | 20 | ||||
-rw-r--r-- | selinux_booleans/selinux_booleans.xsl | 61 |
2 files changed, 81 insertions, 0 deletions
diff --git a/selinux_booleans/selinux_booleans.rng b/selinux_booleans/selinux_booleans.rng index fdb9025..eea4cb3 100644 --- a/selinux_booleans/selinux_booleans.rng +++ b/selinux_booleans/selinux_booleans.rng @@ -1,4 +1,24 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- +Author: Sumit Bose <sbose@redhat.com> + +Copyright (C) 2008 Red Hat +see file 'COPYING' for use and warranty information + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU Lesser General Public License as published by the Free +Software Foundation; version 2 only + +This program is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +details. + +You should have received a copy of the GNU Lesser General Public License +along with this program; see the file COPYING.LGPL. If not, write to the +Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, +MA 02111-1307, USA. +--> <grammar ns="http://freeipa.org/xml/rng/selinux_booleans/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" diff --git a/selinux_booleans/selinux_booleans.xsl b/selinux_booleans/selinux_booleans.xsl new file mode 100644 index 0000000..3963490 --- /dev/null +++ b/selinux_booleans/selinux_booleans.xsl @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Author: Sumit Bose <sbose@redhat.com> + +Copyright (C) 2008 Red Hat +see file 'COPYING' for use and warranty information + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU Lesser General Public License as published by the Free +Software Foundation; version 2 only + +This program is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +details. + +You should have received a copy of the GNU Lesser General Public License +along with this program; see the file COPYING.LGPL. If not, write to the +Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, +MA 02111-1307, USA. +--> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:md="http://freeipa.org/xsl/metadata/1.0" + xmlns:seb="http://freeipa.org/xml/rng/selinux_booleans/1.0"> + + <md:output_handler> + <exec_with_args command_name="/usr/sbin/setsebool" user="root"/> + </md:output_handler> + + <xsl:param name="output_selector"/> + + <xsl:output method="text" indent="no"/> + <xsl:strip-space elements="*"/> + + <xsl:template match="/"> + <xsl:apply-templates select="seb:ipa"/> + </xsl:template> + + <xsl:template match="seb:ipa"> + <xsl:apply-templates> + <xsl:with-param name="seb:seb"/> + </xsl:apply-templates> + </xsl:template> + + <xsl:template match="seb:metadata"> + </xsl:template> + + <xsl:template match="seb:ipaconfig"> + <xsl:apply-templates select="seb:selinux_boolean"/> + </xsl:template> + + <xsl:template match="seb:selinux_boolean"> + <xsl:value-of select="seb:name"/> + <xsl:text>=</xsl:text> + <xsl:value-of select="seb:value"/> + <xsl:text>
</xsl:text> + </xsl:template> + +</xsl:stylesheet> |