[BACK]Return to verified_exec.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/Attic/verified_exec.c between version 1.25 and 1.25.6.1

version 1.25, 2005/10/07 18:07:46 version 1.25.6.1, 2005/11/29 21:23:08
Line 229  veriexecioctl(dev_t dev __unused, u_long
Line 229  veriexecioctl(dev_t dev __unused, u_long
                 vrele(nid.ni_vp);                  vrele(nid.ni_vp);
   
                 /* Get table for the device. */                  /* Get table for the device. */
                 /*  
                  * XXX: va_fsid is long (32/64 bits) and veriexec_tblfind()  
                  * XXX: is passed a dev_t - uint32_t.  
                  */  
                 tbl = veriexec_tblfind((dev_t)va.va_fsid);                  tbl = veriexec_tblfind((dev_t)va.va_fsid);
                 if (tbl == NULL) {                  if (tbl == NULL) {
                         return (EINVAL);                          return (EINVAL);
                 }                  }
   
                 /*  
                  * XXX: Both va_fsid and va_fileid are long (32/64 bits), while  
                  * XXX: veriexec_lookup() is passed dev_t and ino_t - uint32_t.  
                  */  
                 hh = veriexec_lookup((dev_t)va.va_fsid, (ino_t)va.va_fileid);                  hh = veriexec_lookup((dev_t)va.va_fsid, (ino_t)va.va_fileid);
                 if (hh != NULL) {                  if (hh != NULL) {
                         /*                          /*
Line 266  veriexecioctl(dev_t dev __unused, u_long
Line 258  veriexecioctl(dev_t dev __unused, u_long
                 }                  }
   
                 e = malloc(sizeof(*e), M_TEMP, M_WAITOK);                  e = malloc(sizeof(*e), M_TEMP, M_WAITOK);
                 /* XXX: va_fileid is long (32/64 bits), ino_t is uint32_t. */  
                 e->inode = (ino_t)va.va_fileid;                  e->inode = (ino_t)va.va_fileid;
                 e->type = params->type;                  e->type = params->type;
                 e->status = FINGERPRINT_NOTEVAL;                  e->status = FINGERPRINT_NOTEVAL;

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.25.6.1

CVSweb <webmaster@jp.NetBSD.org>