Home | History | Annotate | Download | only in src

Lines Matching refs:pf

9 int sepol_policy_file_create(sepol_policy_file_t ** pf)
11 *pf = calloc(1, sizeof(sepol_policy_file_t));
12 if (!(*pf))
20 struct policy_file *pf = &spf->pf;
22 pf->type = PF_LEN;
25 pf->type = PF_USE_MEMORY;
26 pf->data = data;
27 pf->len = len;
28 pf->size = len;
34 struct policy_file *pf = &spf->pf;
35 pf->type = PF_USE_STDIO;
36 pf->fp = fp;
42 struct policy_file *pf = &spf->pf;
43 if (pf->type != PF_LEN)
45 *len = pf->len;
49 void sepol_policy_file_set_handle(sepol_policy_file_t * pf,
52 pf->pf.handle = handle;
55 void sepol_policy_file_free(sepol_policy_file_t * pf)
57 free(pf);
155 int sepol_policydb_read(sepol_policydb_t * p, sepol_policy_file_t * pf)
157 return policydb_read(&p->p, &pf->pf, 0);
160 int sepol_policydb_write(sepol_policydb_t * p, sepol_policy_file_t * pf)
162 return policydb_write(&p->p, &pf->pf);