or higher being required to execute user-defined scripts or
executables.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3436
e7ae566f-a301-0410-adde-
c780ea21d3b5
#define INLINE_FILE_TAG "[[INLINE]]"
#endif
+/*
+ * Script security warning
+ */
+#define SCRIPT_SECURITY_WARNING "openvpn_execve: external program may not be called unless '--script-security 2' or higher is enabled. See --help text for detailed info."
+
#endif
if (script_security >= SSEC_SCRIPTS)
msg (M_WARN, "NOTE: the current --script-security setting may allow this configuration to call user-defined scripts");
- if (script_security >= SSEC_PW_ENV)
+ else if (script_security >= SSEC_PW_ENV)
msg (M_WARN, "WARNING: the current --script-security setting may allow passwords to be passed to scripts via environmental variables");
+ else
+ msg (M_WARN, "NOTE: " PACKAGE_NAME " 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables");
}
static void
}
else
{
- msg (M_WARN, "openvpn_execve: external program may not be called due to setting of --script-security level");
+ msg (M_WARN, SCRIPT_SECURITY_WARNING);
}
#else
msg (M_WARN, "openvpn_execve: execve function not available");
}
else
{
- msg (M_WARN, "openvpn_execve: external program may not be called due to setting of --script-security level");
+ msg (M_WARN, SCRIPT_SECURITY_WARNING);
}
}
else