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 ############################# 24 compile=""" 25 #!/bin/sh 26 make -f /usr/share/selinux/devel/Makefile 27 semodule -i TEMPLATETYPE.pp 28 """ 29 30 restorecon=""" 31 restorecon -R -v FILENAME 32 """ 33 34 tcp_ports=""" 35 semanage ports -a -t TEMPLATETYPE_port_t -p tcp PORTNUM 36 """ 37 38 udp_ports=""" 39 semanage ports -a -t TEMPLATETYPE_port_t -p udp PORTNUM 40 """ 41