Lines Matching full:stp
131 is_verified(struct stat *stp) in is_verified() argument
136 if (stp->st_ino > 0) { in is_verified()
138 if (stp->st_dev == vsp->vs_dev && in is_verified()
139 stp->st_ino == vsp->vs_ino) { in is_verified()
146 __func__, (long long)stp->st_dev, in is_verified()
147 (unsigned long long)stp->st_ino, rc)); in is_verified()
153 add_verify_status(struct stat *stp, int status) in add_verify_status() argument
160 vsp->vs_dev = stp->st_dev; in add_verify_status()
161 vsp->vs_ino = stp->st_ino; in add_verify_status()
166 __func__, (long long)stp->st_dev, in add_verify_status()
167 (unsigned long long)stp->st_ino, status)); in add_verify_status()
177 const char *skip, struct stat *stp) in load_manifest() argument
187 if (!stp) { in load_manifest()
188 stp = &st; in load_manifest()
192 rc = is_verified(stp); in load_manifest()
197 ve_utc_set(stp->st_mtime); in load_manifest()
209 fingerprint_info_add(name, prefix, skip, content, stp); in load_manifest()
210 add_verify_status(stp, VE_VERIFIED); in load_manifest()
217 add_verify_status(stp, rc); /* remember */ in load_manifest()
303 verify_tweak(int fd, off_t off, struct stat *stp, in verify_tweak() argument
337 ucp = read_fd(fd, stp->st_size); in verify_tweak()
341 num = ve_trust_anchors_revoke(ucp, stp->st_size); in verify_tweak()
345 num = ve_trust_anchors_add_buf(ucp, stp->st_size); in verify_tweak()
388 * @param[in] stp
407 * if stp is not NULL report dev,inode for path
410 verify_report(const char *path, int severity, int status, struct stat *stp) in verify_report() argument
417 if (Verbose == VE_VERBOSE_DEBUG && stp != NULL) in verify_report()
420 (long long)stp->st_dev, in verify_report()
421 (long long)stp->st_ino); in verify_report()
427 if (Verbose == VE_VERBOSE_DEBUG && stp != NULL) in verify_report()
430 (long long)stp->st_dev, in verify_report()
431 (long long)stp->st_ino); in verify_report()
448 * @param[in] stp
452 verify_prep(int fd, const char *filename, off_t off, struct stat *stp, in verify_prep() argument
470 if (stp) { in verify_prep()
471 if (fstat(fd, stp) < 0 || !S_ISREG(stp->st_mode)) in verify_prep()
476 caller, fd, filename, (long long)off, (long long)stp->st_dev, in verify_prep()
477 (unsigned long long)stp->st_ino)); in verify_prep()
478 rc = is_verified(stp); in verify_prep()