summaryrefslogtreecommitdiff
path: root/php.ini-dist
diff options
context:
space:
mode:
authorJames E. Flemer <jflemer@php.net>2001-07-13 18:21:21 +0000
committerJames E. Flemer <jflemer@php.net>2001-07-13 18:21:21 +0000
commit771e3e498fad6adcdc63d03ab97d4ff1f93a3987 (patch)
tree7cc1ecaa721adb2f927d947d5b61dae10760a42d /php.ini-dist
parentb9325a36a8df9619e4485b166516cff1e9193406 (diff)
downloadphp-git-771e3e498fad6adcdc63d03ab97d4ff1f93a3987.tar.gz
o Fixed Bug #12121: chdir and safe_mode
- [ main/safe_mode.h ] added new checkuid mode: CHECKUID_ALLOW_ONLY_FILE: skips directory check if file check fails - [ ext/standard/dir.c ] changed php_checkuid() to use CHECKUID_ALLOW_ONLY_FILE instead of CHECKUID_ALLOW_ONLY_DIR - [ main/safe_mode.c ] added code for new checkuid mode o Fixed Bug #12119: safe mode owner check can be bypassed with symlink - [ main/safe_mode.c ] use VCWD_REALPATH to resolve destination of symlink before trimming filename o New Feature: safe_mode_include_dir (php.ini directive) - Allows bypassing UID/GID checks when including files from the directory in safe_mode_include_dir and its subdirectories. (safe_mode must be on, directory must also be in include_path or full path must be used when including) o Fixed Feature: safe_mode_gid (php.ini directive) - Correctly check (and report) UID/GID bits on directories o Changed include() fall back to scripts cwd implementation - CWD added to the (local) search path in php_fopen_with_path() instead of seperate case. [ main/fopen_wrappers.c ]
Diffstat (limited to 'php.ini-dist')
-rw-r--r--php.ini-dist6
1 files changed, 6 insertions, 0 deletions
diff --git a/php.ini-dist b/php.ini-dist
index 325937c2b9..9d61b913f1 100644
--- a/php.ini-dist
+++ b/php.ini-dist
@@ -116,6 +116,12 @@ safe_mode = Off
; then turn on safe_mode_gid.
safe_mode_gid = Off
+; When safe_mode is on, UID/GID checks are bypassed when
+; including files from this directory and its subdirectories.
+; (directory must also be in include_path or full path must
+; be used when including)
+safe_mode_include_dir =
+
; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
safe_mode_exec_dir =