svn commit: r199121 - stable/8/usr.sbin/crashinfo

Xin LI delphij at FreeBSD.org
Tue Nov 10 00:41:23 UTC 2009


Author: delphij
Date: Tue Nov 10 00:41:22 2009
New Revision: 199121
URL: http://svn.freebsd.org/changeset/base/199121

Log:
  MFC r198846:
  
    Set umask to 0x077 instead of the default.  This prevents non-root user
    from reading crashinfo output, which could contain some sensitive
    information.

Modified:
  stable/8/usr.sbin/crashinfo/crashinfo.sh
Directory Properties:
  stable/8/usr.sbin/crashinfo/   (props changed)

Modified: stable/8/usr.sbin/crashinfo/crashinfo.sh
==============================================================================
--- stable/8/usr.sbin/crashinfo/crashinfo.sh	Tue Nov 10 00:34:25 2009	(r199120)
+++ stable/8/usr.sbin/crashinfo/crashinfo.sh	Tue Nov 10 00:41:22 2009	(r199121)
@@ -147,6 +147,8 @@ fi
 
 echo "Writing crash summary to $FILE."
 
+umask 077
+
 # Simulate uname
 ostype=$(echo -e printf '"%s", ostype' | gdb -x /dev/stdin -batch $KERNEL)
 osrelease=$(echo -e printf '"%s", osrelease' | gdb -x /dev/stdin -batch $KERNEL)


More information about the svn-src-all mailing list