From 032cabff13965a7b6eef4aa269ff9b4d25faef6f Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 30 Aug 2006 20:30:10 +0000
Subject: [PATCH] Provide a mechanism for managing file permissions. On UNIX-based systems where the use of exec is allowed, it will use the underlying chmod utility to set file permissions. On other systems, if Java 6 is available then the new methods in the java.io.File class will be used. If neither option is available, then it will not be possible to manage file permissions.
---
opends/src/server/org/opends/server/util/ServerConstants.java | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/util/ServerConstants.java b/opends/src/server/org/opends/server/util/ServerConstants.java
index b33e39b..c64a154 100644
--- a/opends/src/server/org/opends/server/util/ServerConstants.java
+++ b/opends/src/server/org/opends/server/util/ServerConstants.java
@@ -1993,5 +1993,17 @@
* The full unit that should be used for a time specified in weeks.
*/
public static final String TIME_UNIT_WEEKS_FULL = "weeks";
+
+
+
+ /**
+ * The name of the system property that can be used to indicate whether
+ * components should be allowed to use the <CODE>Runtime.exec</CODE> method.
+ * If this property is set and the value is anything other than "false",
+ * "off", "no", or "0", then components should not allow the use of the
+ * <CODE>exec</CODE> method.
+ */
+ public static final String PROPERTY_DISABLE_EXEC =
+ "org.opends.server.DisableExec";
}
--
Gitblit v1.10.0