Subject: CVS commit: [netbsd-3] src/sys/kern
To: None <source-changes@NetBSD.org>
From: Matthias Scheler <tron@netbsd.org>
List: source-changes
Date: 08/16/2005 12:43:11
Module Name: src
Committed By: tron
Date: Tue Aug 16 12:43:11 UTC 2005
Modified Files:
src/sys/kern [netbsd-3]: kern_verifiedexec.c
Log Message:
Pull up revision 1.35 (requested by elad in ticket #669):
The veriexec API uses dev_t and ino_t for device and inode numbers.
VOP_GETATTR() fills a struct vattr, where va_fsid and va_fileid (device
and inode..) are typed as long.
Add some casts when using these values and surround them with XXXs about
the potential size mismatch, as long can be 64 bits but dev_t and ino_t
are always 32 bits. This is safe because *for now* we're still using
32 bit inode numbers.
Discussed with blymn@.
To generate a diff of this commit:
cvs rdiff -r1.9.2.22 -r1.9.2.23 src/sys/kern/kern_verifiedexec.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.