464537 - Updated setuid dependency to 1.0.3.
Also moved here jetty-setuid.xml from the setuid project, so that it can remain in sync with its correspondent setuid.mod file.
This commit is contained in:
parent
3169e3becf
commit
b7c7211cf5
|
@ -11,7 +11,7 @@
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<properties>
|
<properties>
|
||||||
<assembly-directory>${basedir}/target/distribution</assembly-directory>
|
<assembly-directory>${basedir}/target/distribution</assembly-directory>
|
||||||
<jetty-setuid-version>1.0.1</jetty-setuid-version>
|
<jetty-setuid-version>1.0.3</jetty-setuid-version>
|
||||||
</properties>
|
</properties>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
@ -205,28 +205,6 @@
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
|
||||||
<execution>
|
|
||||||
<id>unpack-setuid-config</id>
|
|
||||||
<phase>process-resources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>unpack</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<artifactItems>
|
|
||||||
<artifactItem>
|
|
||||||
<groupId>org.eclipse.jetty.toolchain.setuid</groupId>
|
|
||||||
<artifactId>jetty-setuid-java</artifactId>
|
|
||||||
<version>${jetty-setuid-version}</version>
|
|
||||||
<classifier>config</classifier>
|
|
||||||
<type>jar</type>
|
|
||||||
<overWrite>true</overWrite>
|
|
||||||
<outputDirectory>${assembly-directory}</outputDirectory>
|
|
||||||
</artifactItem>
|
|
||||||
</artifactItems>
|
|
||||||
<excludes>META-INF/**</excludes>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
|
|
||||||
<execution>
|
<execution>
|
||||||
<id>unpack-test-jaas-config</id>
|
<id>unpack-test-jaas-config</id>
|
||||||
<phase>process-resources</phase>
|
<phase>process-resources</phase>
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
|
||||||
|
|
||||||
|
<!-- ================================================================ -->
|
||||||
|
<!-- Configure the Jetty SetUIDListener -->
|
||||||
|
<!-- ================================================================ -->
|
||||||
|
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
||||||
|
|
||||||
|
<Call name="addLifeCycleListener">
|
||||||
|
<Arg>
|
||||||
|
<New class="org.eclipse.jetty.setuid.SetUIDListener">
|
||||||
|
<Set name="startServerAsPrivileged"><Property name="jetty.setuid.startServerAsPrivileged,jetty.startServerAsPrivileged" default="false"/></Set>
|
||||||
|
<Set name="umaskOctal"><Property name="jetty.setuid.umask,jetty.umask" default="002"/></Set>
|
||||||
|
<Set name="username"><Property name="jetty.setuid.userName,jetty.username" default="jetty"/></Set>
|
||||||
|
<Set name="groupname"><Property name="jetty.setuid.groupName,jetty.groupname" default="jetty"/></Set>
|
||||||
|
<!-- uncomment to change the limits on number of open file descriptors for root -->
|
||||||
|
<!--
|
||||||
|
<Call name="setRLimitNoFiles">
|
||||||
|
<Arg>
|
||||||
|
<New class="org.eclipse.jetty.setuid.RLimit">
|
||||||
|
<Set name="soft">20000</Set>
|
||||||
|
<Set name="hard">40000</Set>
|
||||||
|
</New>
|
||||||
|
</Arg>
|
||||||
|
</Call>
|
||||||
|
-->
|
||||||
|
</New>
|
||||||
|
</Arg>
|
||||||
|
</Call>
|
||||||
|
</Configure>
|
|
@ -6,14 +6,14 @@
|
||||||
server
|
server
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
lib/setuid/jetty-setuid-java-1.0.1.jar
|
lib/setuid/jetty-setuid-java-1.0.3.jar
|
||||||
|
|
||||||
[xml]
|
[xml]
|
||||||
etc/jetty-setuid.xml
|
etc/jetty-setuid.xml
|
||||||
|
|
||||||
[ini-template]
|
[ini-template]
|
||||||
## SetUID Configuration
|
## SetUID Configuration
|
||||||
# jetty.startServerAsPrivileged=false
|
# jetty.setuid.startServerAsPrivileged=false
|
||||||
# jetty.username=jetty
|
# jetty.setuid.userName=jetty
|
||||||
# jetty.groupname=jetty
|
# jetty.setuid.groupName=jetty
|
||||||
# jetty.umask=002
|
# jetty.setuid.umask=002
|
||||||
|
|
|
@ -6,14 +6,14 @@
|
||||||
server
|
server
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
lib/setuid/jetty-setuid-java-1.0.1.jar
|
lib/setuid/jetty-setuid-java-1.0.3.jar
|
||||||
|
|
||||||
[xml]
|
[xml]
|
||||||
etc/jetty-setuid.xml
|
etc/jetty-setuid.xml
|
||||||
|
|
||||||
[ini-template]
|
[ini-template]
|
||||||
## SetUID Configuration
|
## SetUID Configuration
|
||||||
# jetty.startServerAsPrivileged=false
|
# jetty.setuid.startServerAsPrivileged=false
|
||||||
# jetty.username=jetty
|
# jetty.setuid.userName=jetty
|
||||||
# jetty.groupname=jetty
|
# jetty.setuid.groupName=jetty
|
||||||
# jetty.umask=002
|
# jetty.setuid.umask=002
|
||||||
|
|
Loading…
Reference in New Issue