Lines Matching refs:rc
239 int flags, rc;
246 rc = vn_open(nid, &flags, 0, NULL);
248 if (rc != 0)
249 return (rc);
264 int rc;
269 rc = open_file(path, &nid);
270 if (rc != 0)
273 rc = VOP_GETATTR(nid.ni_vp, &va, curthread->td_ucred);
274 if (rc != 0)
280 rc = vn_rdwr(
285 if (rc != 0)
324 int rc, is_exec, flags;
330 rc = get_fp(entry, &fp_type, &digest, &flags);
331 if (rc != 0)
332 return (rc);
334 rc = hexstring_to_bin(digest);
335 if (rc != 0)
336 return (rc);
343 rc = snprintf(path, MAXPATHLEN, "%s/%s",
345 if (rc < 0)
346 return (-rc);
351 rc = open_file(path, &nid);
353 if (rc != 0)
354 return (rc);
356 rc = VOP_GETATTR(nid.ni_vp, &va, curthread->td_ucred);
357 if (rc != 0)
363 rc = mac_veriexec_metadata_add_file(
374 return (rc);
387 int rc, success_count;
391 rc = 0;
395 rc = EIO;
410 if ((rc = parse_entry(entry, prefix)))
412 " entry with rc:%d, entry:\"%s\"\n", rc, entry);
418 rc = 0;
425 rc = EINVAL;
427 return (rc);
436 int rc;
454 rc = hexstring_to_bin(manifest_hash);
455 if (rc != 0)
459 rc = parse_manifest(manifest_path, manifest_hash, manifest_prefix);
460 if (rc != 0)
461 panic("mac_veriexec: Failed to parse manifest err=%d", rc);