any reason why linker.hints has mode -rw------- ?

From: Luigi Rizzo <rizzo_at_iet.unipi.it>
Date: Thu, 27 Nov 2008 15:31:19 +0100
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
Received on Thu Nov 27 2008 - 13:26:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:38 UTC