aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-11-06 11:13:02 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-11-06 11:13:02 +0000
commit08ee5d13aed6d47c94cc8f5336cc1a7a23afb00f (patch)
treebab4f0293c159f503526e13097bccf89e97f5291
parent1d317df96cac56be7e38728f3abfe9ea29c201a2 (diff)
downloadsrc-08ee5d13aed6d47c94cc8f5336cc1a7a23afb00f.tar.gz
src-08ee5d13aed6d47c94cc8f5336cc1a7a23afb00f.zip
Security nitpicking: don't make *.core world readable
Notes
Notes: svn path=/head/; revision=4210
-rw-r--r--sys/kern/kern_sig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 5ba88875795a..e644649256b9 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_sig.c 8.7 (Berkeley) 4/18/94
- * $Id: kern_sig.c,v 1.6 1994/09/30 00:38:34 ache Exp $
+ * $Id: kern_sig.c,v 1.7 1994/10/10 01:00:47 phk Exp $
*/
#define SIGPROP /* include signal properties table */
@@ -1173,7 +1173,7 @@ coredump(p)
sprintf(name, "%s.core", p->p_comm);
NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, name, p);
if ((error = vn_open(&nd,
- O_CREAT | FWRITE, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)))
+ O_CREAT | FWRITE, S_IRUSR | S_IWUSR)))
return (error);
vp = nd.ni_vp;