Home | History | Annotate | Download | only in src

Lines Matching refs:fp

369 int avtab_read_item(struct policy_file *fp, uint32_t vers, avtab_t * a,
385 rc = next_entry(buf32, fp, sizeof(uint32_t));
387 ERR(fp->handle, "truncated entry");
393 ERR(fp->handle, "invalid item count");
397 rc = next_entry(buf32, fp, sizeof(uint32_t) * items2);
399 ERR(fp->handle, "truncated entry");
407 ERR(fp->handle, "truncated source type");
413 ERR(fp->handle, "truncated target type");
419 ERR(fp->handle, "truncated target class");
427 ERR(fp->handle, "null entry");
431 ERR(fp->handle, "entry has both access "
447 ERR(fp->handle, "entry only had %d items, "
454 rc = next_entry(buf16, fp, sizeof(uint16_t) * 4);
456 ERR(fp->handle, "truncated entry");
471 ERR(fp->handle, "more than one specifier");
475 rc = next_entry(buf32, fp, sizeof(uint32_t));
477 ERR(fp->handle, "truncated entry");
490 int avtab_read(avtab_t * a, struct policy_file *fp, uint32_t vers)
497 rc = next_entry(buf, fp, sizeof(uint32_t));
499 ERR(fp->handle, "truncated table");
504 ERR(fp->handle, "table is empty");
510 ERR(fp->handle, "out of memory");
515 rc = avtab_read_item(fp, vers, a, avtab_insertf, NULL);
518 ERR(fp->handle, "out of memory");
520 ERR(fp->handle, "duplicate entry");
521 ERR(fp->handle, "failed on entry %d of %u", i, nel);