Subject: Re: permission of kernel's core
To: NAKAJIMA Yoshihiro <nakayosh@kcn.or.jp>
From: Rick Byers <rickb@iaw.on.ca>
List: current-users
Date: 08/29/1997 12:03:03
I simply set /var/crash to 750.  That does the trick and is easy to
configure on a per system basis.  If this isn't the default, it should be.

Rick

On Sat, 30 Aug 1997, NAKAJIMA Yoshihiro wrote:

> 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>
> 

=========================================================================
Rick Byers                                      Internet Access Worldwide
rickb@iaw.on.ca                                System Admin, Tech Support
Welland, Ontario, Canada                                    (905)714-1400
http://www.iaw.on.ca/rickb/                         http://www.iaw.on.ca/