Date: Thu, 27 Nov 2008 15:31:19 +0100 From: Luigi Rizzo <rizzo@iet.unipi.it> To: current@freebsd.org Subject: any reason why linker.hints has mode -rw------- ? Message-ID: <20081127143119.GB33716@onelab2.iet.unipi.it>
next in thread | raw e-mail | index | archive | help
As the subject says... kldxref creates linker.hints files with mode 600, and I cannot see any good reason for that except for a bug (or probably two bugs). Looking at the source code src/usr.sbin/kldxref/kldxref.c, it seems that the file is originally created by mkstemp (in a weird way -- the file descriptor returned by mkstemp is ignored, then the file is reopened) and here is where it gets the 600 permission. Then the file is rename()'d, but forgetting to restore the permission to something more useful ? cheers luigi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081127143119.GB33716>