Author: trociny
Date: Sun Jan 29 21:58:18 2012
New Revision: 230757
URL: http://svn.freebsd.org/changeset/base/230757

Log:
  MFC r228268:
  
  Protect process environment variables with p_candebug().
  
  Discussed with:       jilles, kib, rwatson

Modified:
  stable/8/sys/compat/linprocfs/linprocfs.c
Directory Properties:
  stable/8/sys/   (props changed)

Modified: stable/8/sys/compat/linprocfs/linprocfs.c
==============================================================================
--- stable/8/sys/compat/linprocfs/linprocfs.c   Sun Jan 29 21:44:25 2012        
(r230756)
+++ stable/8/sys/compat/linprocfs/linprocfs.c   Sun Jan 29 21:58:18 2012        
(r230757)
@@ -1102,7 +1102,7 @@ linprocfs_doprocenviron(PFS_FILL_ARGS)
        int ret;
 
        PROC_LOCK(p);
-       if ((ret = p_cansee(td, p)) != 0) {
+       if ((ret = p_candebug(td, p)) != 0) {
                PROC_UNLOCK(p);
                return (ret);
        }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to