about summary refs log tree commit diff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-09-28 09:50:58 +0100
committerPeter Stephenson <pws@zsh.org>2016-09-28 09:50:58 +0100
commitb32d974000295a5fa0b0c981b3198f987d3177c4 (patch)
tree17ca9ec366f7d652ff7473e7e43a65b2c691f2da /Src/zsh.h
parent8d04b5429ffc9a302addd7159b20f8cadffd0c44 (diff)
downloadzsh-b32d974000295a5fa0b0c981b3198f987d3177c4.tar.gz
zsh-b32d974000295a5fa0b0c981b3198f987d3177c4.tar.xz
zsh-b32d974000295a5fa0b0c981b3198f987d3177c4.zip
39460: Don't import PS4 if running as root.
There was an exploit in bash using SHELLOPTS to turn on xtrace,
however this can't happen in zsh, so this is simply a precaution.
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index bb8ce130c..052d754c9 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -1802,6 +1802,7 @@ struct tieddata {
 #define PM_ZSHSTORED	(1<<18) /* function stored in zsh form              */
 
 /* Remaining flags do not correspond directly to command line arguments */
+#define PM_DONTIMPORT_ROOT (1<<19) /* do not import if running as root */
 #define PM_SINGLE       (1<<20) /* special can only have a single instance  */
 #define PM_LOCAL	(1<<21) /* this parameter will be made local        */
 #define PM_SPECIAL	(1<<22) /* special builtin parameter                */