Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 378428 Details for
Bug 512656
www-servers/tomcat umask for Tomcat instances (patch)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for files/tomcat.{conf,init}
tomcat-umask.patch (text/plain), 1.20 KB, created by
Johann Schmitz (ercpe) (RETIRED)
on 2014-06-07 15:24:48 UTC
(
hide
)
Description:
Patch for files/tomcat.{conf,init}
Filename:
MIME Type:
Creator:
Johann Schmitz (ercpe) (RETIRED)
Created:
2014-06-07 15:24:48 UTC
Size:
1.20 KB
patch
obsolete
>diff --git a/files/tomcat.conf b/files/tomcat.conf >index a27f933..554b5bf 100644 >--- a/files/tomcat.conf >+++ b/files/tomcat.conf >@@ -47,3 +47,9 @@ CATALINA_GROUP=@INSTANCE_GROUP@ > # Additional options to pass to catalina > # > #CATALINA_OPTS="" >+ >+# umask to pass to start-stop-deamon >+# Note: It is generally not advised to change the default umask as it >+# opens the permissions on all files create by tomcat and may lead to >+# security vulnerabilities. >+#TOMCAT_UMASK=0027 >diff --git a/files/tomcat.init b/files/tomcat.init >index 1f80681..85ef583 100644 >--- a/files/tomcat.init >+++ b/files/tomcat.init >@@ -23,6 +23,8 @@ export JAVA_HOME=`java-config ${TOMCAT_JVM:+--select-vm ${TOMCAT_JVM}} --jre-hom > CLASSPATH=`java-config --classpath tomcat-@SLOT@${TOMCAT_EXTRA_JARS:+,${TOMCAT_EXTRA_JARS}}` > export CLASSPATH="${CLASSPATH}${TOMCAT_EXTRA_CLASSPATH:+:${TOMCAT_EXTRA_CLASSPATH}}" > >+UMASK="${TOMCAT_UMASK:=0027}" >+ > depend() { > use dns logger net > } >@@ -56,6 +58,7 @@ start() { > start-stop-daemon --start \ > --quiet --background \ > --chdir "${CATALINA_TMPDIR}" \ >+ --umask ${UMASK} \ > --user ${CATALINA_USER}:${CATALINA_GROUP} \ > --make-pidfile --pidfile ${PIDFILE} \ > --exec ${JAVA_HOME}/bin/${cmd} \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 512656
: 378428