Lines Matching refs:perm
646 static bool unpack_perm(struct aa_ext *e, u32 version, struct aa_perms *perm)
655 aa_unpack_u32(e, &perm->allow, NULL) &&
656 aa_unpack_u32(e, &perm->deny, NULL) &&
657 aa_unpack_u32(e, &perm->subtree, NULL) &&
658 aa_unpack_u32(e, &perm->cond, NULL) &&
659 aa_unpack_u32(e, &perm->kill, NULL) &&
660 aa_unpack_u32(e, &perm->complain, NULL) &&
661 aa_unpack_u32(e, &perm->prompt, NULL) &&
662 aa_unpack_u32(e, &perm->audit, NULL) &&
663 aa_unpack_u32(e, &perm->quiet, NULL) &&
664 aa_unpack_u32(e, &perm->hide, NULL) &&
665 aa_unpack_u32(e, &perm->xindex, NULL) &&
666 aa_unpack_u32(e, &perm->tag, NULL) &&
667 aa_unpack_u32(e, &perm->label, NULL);
1192 static bool verify_perm(struct aa_perms *perm)
1195 if (perm->allow & perm->deny)
1197 if (perm->subtree & ~perm->allow)
1199 if (perm->cond & (perm->allow | perm->deny))
1201 if (perm->kill & perm->allow)
1203 if (perm->complain & (perm->allow | perm->deny))
1205 if (perm->prompt & (perm->allow | perm->deny))
1207 if (perm->complain & perm->prompt)
1209 if (perm->hide & perm->allow)
1268 "Unpack: Invalid perm index", NULL, -EPROTO);
1273 "Unpack: Invalid perm index", NULL, -EPROTO);
1278 "Unpack: Invalid perm index", NULL, -EPROTO);