Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: Elad Efrat <email@example.com>
Date: 08/13/2005 12:56:44
Module Name: src
Committed By: elad
Date: Sat Aug 13 12:56:44 UTC 2005
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.20 -r1.21 src/sys/dev/verified_exec.c
cvs rdiff -r1.34 -r1.35 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.