[java-identity-provider COMMIT] /trunk/idp-distribution/src/main/resources/bin/ant-jetty.xml
noreply at shibboleth.net
noreply at shibboleth.net
Mon Nov 3 09:22:37 EST 2014
Author: rdw
Date: Mon Nov 3 09:22:37 2014
New Revision: 6826
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=6826&view=rev
Log:
IDP-487 Lock down jetty config as per IdP config
Modified:
trunk/idp-distribution/src/main/resources/bin/ant-jetty.xml
Modified: trunk/idp-distribution/src/main/resources/bin/ant-jetty.xml
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-distribution/src/main/resources/bin/ant-jetty.xml?rev=6826&r1=6825&r2=6826&view=diff
==============================================================================
--- trunk/idp-distribution/src/main/resources/bin/ant-jetty.xml (original)
+++ trunk/idp-distribution/src/main/resources/bin/ant-jetty.xml Mon Nov 3 09:22:37 2014
@@ -29,7 +29,7 @@
<taskdef resource="net/shibboleth/idp/installer/ant.xml" />
- <target name="install" depends="init, properties, keystores, copyinis, tidy" />
+ <target name="install" depends="init, properties, keystores, copyinis, reprotect, tidy" />
<target name="init">
<tstamp />
@@ -82,6 +82,23 @@
<mkdir dir="jetty-base/start.d" />
<mergeproperties inFile="${idp.target.dir}/jetty-base/start.d.dist/idp.ini" outFile="${idp.target.dir}/jetty-base/start.d/idp.ini" mergeFile="${jetty.merge.properties}" />
</target>
+
+ <target name="reprotect">
+ <chmod perm="600" dir="jetty-base/start.d" includes="**/*.key"/>
+ <chmod perm="444" dir="jetty-base/etc" includes="**/*"/>
+ <chmod perm="444" dir="jetty-base/lib" includes="**/*"/>
+ <chmod perm="444" dir="jetty-base/webapps" includes="**/*"/>
+ <attrib readonly="true">
+ <fileset dir="jetty-base/etc" includes="**/*"/>
+ </attrib>
+ <attrib readonly="true">
+ <fileset dir="jetty-base/lib" includes="**/*"/>
+ </attrib>
+ <attrib readonly="true">
+ <fileset dir="jetty-base/webapps" includes="**/*"/>
+ </attrib>
+ </target>
+
<target name="tidy" unless="jetty.no.tidy">
<delete file="${jetty.merge.properties}" failonerror="false" />
More information about the commits
mailing list