walters / rpms / pam

Forked from rpms/pam 5 years ago
Clone
4baf0f6
diff -up pam/modules/pam_env/pam_env.c.nouserenv pam/modules/pam_env/pam_env.c
4baf0f6
--- pam/modules/pam_env/pam_env.c.nouserenv	2010-10-20 09:59:30.000000000 +0200
4baf0f6
+++ pam/modules/pam_env/pam_env.c	2010-11-01 14:42:01.000000000 +0100
4baf0f6
@@ -10,7 +10,7 @@
4baf0f6
 #define DEFAULT_READ_ENVFILE    1
4baf0f6
 
4baf0f6
 #define DEFAULT_USER_ENVFILE    ".pam_environment"
4baf0f6
-#define DEFAULT_USER_READ_ENVFILE 1
4baf0f6
+#define DEFAULT_USER_READ_ENVFILE 0
4baf0f6
 
4baf0f6
 #include "config.h"
4baf0f6
 
4baf0f6
diff -up pam/modules/pam_env/pam_env.8.xml.nouserenv pam/modules/pam_env/pam_env.8.xml
4baf0f6
--- pam/modules/pam_env/pam_env.8.xml.nouserenv	2010-10-20 09:59:30.000000000 +0200
4baf0f6
+++ pam/modules/pam_env/pam_env.8.xml	2010-11-01 14:42:01.000000000 +0100
4baf0f6
@@ -147,7 +147,10 @@
4baf0f6
         <listitem>
4baf0f6
           <para>
4baf0f6
             Turns on or off the reading of the user specific environment
4baf0f6
-            file. 0 is off, 1 is on. By default this option is on.
4baf0f6
+            file. 0 is off, 1 is on. By default this option is off as user
4baf0f6
+            supplied environment variables in the PAM environment could affect
4baf0f6
+            behavior of subsequent modules in the stack without the consent
4baf0f6
+            of the system administrator.
4baf0f6
           </para>
4baf0f6
         </listitem>
4baf0f6
       </varlistentry>