Lines Matching defs:xperms
74 struct avtab_extended_perms *xperms;
81 xperms = kmem_cache_zalloc(avtab_xperms_cachep, GFP_KERNEL);
82 if (xperms == NULL) {
86 *xperms = *(datum->u.xperms);
87 newnode->datum.u.xperms = xperms;
262 temp->datum.u.xperms);
380 struct avtab_extended_perms xperms;
381 __le32 buf32[ARRAY_SIZE(xperms.perms.p)];
497 memset(&xperms, 0, sizeof(struct avtab_extended_perms));
498 rc = next_entry(&xperms.specified, fp, sizeof(u8));
503 rc = next_entry(&xperms.driver, fp, sizeof(u8));
508 rc = next_entry(buf32, fp, sizeof(u32)*ARRAY_SIZE(xperms.perms.p));
513 for (i = 0; i < ARRAY_SIZE(xperms.perms.p); i++)
514 xperms.perms.p[i] = le32_to_cpu(buf32[i]);
515 datum.u.xperms = &xperms;
585 __le32 buf32[ARRAY_SIZE(cur->datum.u.xperms->perms.p)];
598 rc = put_entry(&cur->datum.u.xperms->specified, sizeof(u8), 1, fp);
601 rc = put_entry(&cur->datum.u.xperms->driver, sizeof(u8), 1, fp);
604 for (i = 0; i < ARRAY_SIZE(cur->datum.u.xperms->perms.p); i++)
605 buf32[i] = cpu_to_le32(cur->datum.u.xperms->perms.p[i]);
607 ARRAY_SIZE(cur->datum.u.xperms->perms.p), fp);