Subject: CVS commit: [netbsd-3] src/sys/dev
To: None <source-changes@NetBSD.org>
From: Matthias Scheler <firstname.lastname@example.org>
Date: 08/16/2005 12:43:17
Module Name: src
Committed By: tron
Date: Tue Aug 16 12:43:17 UTC 2005
src/sys/dev [netbsd-3]: verified_exec.c
Pull up revision 1.21 (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 -r220.127.116.11 -r18.104.22.168 src/sys/dev/verified_exec.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.