Subject: permission of kernel's core
To: None <current-users@NetBSD.ORG>
From: NAKAJIMA Yoshihiro <nakayosh@kcn.or.jp>
List: current-users
Date: 08/30/1997 00:04:08
Hello everyone!

My kernel was crashed this night. And rebooting, savecore(8)
made a core file, such as:

: % ls -l /var/crash/netbsd*
: -rw-r--r--  1 root  wheel   1018232 Aug 29 20:09 /var/crash/netbsd.0
: -rw-r--r--  1 root  wheel  67108864 Aug 29 20:09 /var/crash/netbsd.0.core

The core file is `world readable'. Is this correct?

In savecore_old.c (I'm an i386 user), core file is open(2)'d as
0644 or zopen(3)'d. in addition, savecore.c uses umask(002).

Any suggestion?

-- 
nakayosh@kcn.or.jp/NAKAJIMA Yoshihiro
PGP public key: <URL:http://www.kcn.or.jp/%7Enakayosh/nakayosh.pgp-public-key>