1# Copyright (C) 2007-2012 Red Hat
2# see file 'COPYING' for use and warranty information
3#
4# policygentool is a tool for the initial generation of SELinux policy
5#
6#    This program is free software; you can redistribute it and/or
7#    modify it under the terms of the GNU General Public License as
8#    published by the Free Software Foundation; either version 2 of
9#    the License, or (at your option) any later version.
10#
11#    This program is distributed in the hope that it will be useful,
12#    but WITHOUT ANY WARRANTY; without even the implied warranty of
13#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14#    GNU General Public License for more details.
15#
16#    You should have received a copy of the GNU General Public License
17#    along with this program; if not, write to the Free Software
18#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19#                                        02111-1307  USA
20#
21#
22
23########################### tmp Template File #############################
24compile="""
25#!/bin/sh
26make -f /usr/share/selinux/devel/Makefile
27semodule -i TEMPLATETYPE.pp
28"""
29
30restorecon="""
31restorecon -R -v FILENAME
32"""
33
34tcp_ports="""
35semanage ports -a -t TEMPLATETYPE_port_t -p tcp PORTNUM
36"""
37
38udp_ports="""
39semanage ports -a -t TEMPLATETYPE_port_t -p udp PORTNUM
40"""
41