Lines Matching refs:plm
341 struct policy_load_memory *plm = NULL; in sel_open_policy() local
358 plm = kzalloc(sizeof(*plm), GFP_KERNEL); in sel_open_policy()
359 if (!plm) in sel_open_policy()
368 rc = security_read_policy(&plm->data, &plm->len); in sel_open_policy()
374 filp->private_data = plm; in sel_open_policy()
382 if (plm) in sel_open_policy()
383 vfree(plm->data); in sel_open_policy()
384 kfree(plm); in sel_open_policy()
390 struct policy_load_memory *plm = filp->private_data; in sel_release_policy() local
392 BUG_ON(!plm); in sel_release_policy()
396 vfree(plm->data); in sel_release_policy()
397 kfree(plm); in sel_release_policy()
405 struct policy_load_memory *plm = filp->private_data; in sel_read_policy() local
415 ret = simple_read_from_buffer(buf, count, ppos, plm->data, plm->len); in sel_read_policy()
423 struct policy_load_memory *plm = vmf->vma->vm_file->private_data; in sel_mmap_policy_fault() local
431 if (offset >= roundup(plm->len, PAGE_SIZE)) in sel_mmap_policy_fault()
434 page = vmalloc_to_page(plm->data + offset); in sel_mmap_policy_fault()