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