Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 9 of 9) sorted by relevance

/security/selinux/ss/
A Dpolicydb.c2831 struct policy_file *fp = pd->fp; in sens_write() local
2859 struct policy_file *fp = pd->fp; in cat_write() local
2884 struct policy_file *fp = pd->fp; in role_trans_write_one() local
2999 struct policy_file *fp = pd->fp; in common_write() local
3094 struct policy_file *fp = pd->fp; in class_write() local
3179 struct policy_file *fp = pd->fp; in role_write() local
3219 struct policy_file *fp = pd->fp; in type_write() local
3260 struct policy_file *fp = pd->fp; in user_write() local
3504 struct policy_file *fp = pd->fp; in range_write_helper() local
3533 pd.fp = fp; in range_write()
[all …]
A Dpolicydb.h328 extern int policydb_read(struct policydb *p, struct policy_file *fp);
354 struct policy_file *fp; member
359 if (bytes > fp->len) in next_entry()
362 memcpy(buf, fp->data, bytes); in next_entry()
363 fp->data += bytes; in next_entry()
364 fp->len -= bytes; in next_entry()
369 struct policy_file *fp) in put_entry() argument
376 if (len > fp->len) in put_entry()
378 memcpy(fp->data, buf, len); in put_entry()
379 fp->data += len; in put_entry()
[all …]
A Dconditional.c221 rc = next_entry(buf, fp, sizeof(buf)); in cond_read_bool()
234 rc = str_read(&key, GFP_KERNEL, fp, len); in cond_read_bool()
329 rc = next_entry(buf, fp, sizeof(u32)); in cond_read_av_list()
418 rc = next_entry(buf, fp, sizeof(buf)); in cond_read_list()
450 struct policy_file *fp = pd->fp; in cond_write_bool() local
459 rc = put_entry(buf, sizeof(u32), 3, fp); in cond_write_bool()
462 rc = put_entry(key, 1, len, fp); in cond_write_bool()
478 struct policy_file *fp) in cond_write_av_list() argument
485 rc = put_entry(buf, sizeof(u32), 1, fp); in cond_write_av_list()
499 struct policy_file *fp) in cond_write_node() argument
[all …]
A Davtab.c358 rc = next_entry(buf32, fp, sizeof(u32)); in avtab_read_item()
428 rc = next_entry(buf16, fp, sizeof(u16) * 4); in avtab_read_item()
474 rc = next_entry(&xperms.driver, fp, sizeof(u8)); in avtab_read_item()
479 rc = next_entry(buf32, fp, in avtab_read_item()
489 rc = next_entry(buf32, fp, sizeof(u32)); in avtab_read_item()
516 rc = next_entry(buf, fp, sizeof(u32)); in avtab_read()
564 rc = put_entry(buf16, sizeof(u16), 4, fp); in avtab_write_item()
570 fp); in avtab_write_item()
582 rc = put_entry(buf32, sizeof(u32), 1, fp); in avtab_write_item()
597 rc = put_entry(buf, sizeof(u32), 1, fp); in avtab_write()
[all …]
A Davtab.h109 int avtab_read_item(struct avtab *a, struct policy_file *fp, struct policydb *pol,
114 int avtab_read(struct avtab *a, struct policy_file *fp, struct policydb *pol);
116 struct policy_file *fp);
117 int avtab_write(struct policydb *p, struct avtab *a, struct policy_file *fp);
A Dconditional.h71 int cond_read_bool(struct policydb *p, struct symtab *s, struct policy_file *fp);
72 int cond_read_list(struct policydb *p, struct policy_file *fp);
74 int cond_write_list(struct policydb *p, struct policy_file *fp);
A Debitmap.c363 int ebitmap_read(struct ebitmap *e, struct policy_file *fp) in ebitmap_read() argument
375 rc = next_entry(buf, fp, sizeof buf); in ebitmap_read()
403 rc = next_entry(&ebitmap_start, fp, sizeof(u32)); in ebitmap_read()
446 rc = next_entry(&mapbits, fp, sizeof(u64)); in ebitmap_read()
481 int ebitmap_write(const struct ebitmap *e, struct policy_file *fp) in ebitmap_write() argument
506 rc = put_entry(buf, sizeof(u32), 3, fp); in ebitmap_write()
527 rc = put_entry(buf, sizeof(u32), 1, fp); in ebitmap_write()
532 rc = put_entry(buf64, sizeof(u64), 1, fp); in ebitmap_write()
548 rc = put_entry(buf, sizeof(u32), 1, fp); in ebitmap_write()
553 rc = put_entry(buf64, sizeof(u64), 1, fp); in ebitmap_write()
A Debitmap.h133 int ebitmap_read(struct ebitmap *e, struct policy_file *fp);
134 int ebitmap_write(const struct ebitmap *e, struct policy_file *fp);
A Dservices.c2313 struct policy_file file = { data, len }, *fp = &file; in security_load_policy() local
2325 rc = policydb_read(&newpolicy->policydb, fp); in security_load_policy()
4011 struct policy_file fp; in __security_read_policy() local
4013 fp.data = data; in __security_read_policy()
4014 fp.len = *len; in __security_read_policy()
4016 rc = policydb_write(&policy->policydb, &fp); in __security_read_policy()
4020 *len = (unsigned long)fp.data - (unsigned long)data; in __security_read_policy()

Completed in 25 milliseconds