Lines Matching refs:perm
646 static bool unpack_perm(struct aa_ext *e, u32 version, struct aa_perms *perm) in unpack_perm() argument
651 return aa_unpack_u32(e, &perm->allow, NULL) && in unpack_perm()
652 aa_unpack_u32(e, &perm->allow, NULL) && in unpack_perm()
653 aa_unpack_u32(e, &perm->deny, NULL) && in unpack_perm()
654 aa_unpack_u32(e, &perm->subtree, NULL) && in unpack_perm()
655 aa_unpack_u32(e, &perm->cond, NULL) && in unpack_perm()
656 aa_unpack_u32(e, &perm->kill, NULL) && in unpack_perm()
657 aa_unpack_u32(e, &perm->complain, NULL) && in unpack_perm()
658 aa_unpack_u32(e, &perm->prompt, NULL) && in unpack_perm()
659 aa_unpack_u32(e, &perm->audit, NULL) && in unpack_perm()
660 aa_unpack_u32(e, &perm->quiet, NULL) && in unpack_perm()
661 aa_unpack_u32(e, &perm->hide, NULL) && in unpack_perm()
662 aa_unpack_u32(e, &perm->xindex, NULL) && in unpack_perm()
663 aa_unpack_u32(e, &perm->tag, NULL) && in unpack_perm()
664 aa_unpack_u32(e, &perm->label, NULL); in unpack_perm()
1191 static bool verify_perm(struct aa_perms *perm) in verify_perm() argument
1194 if (perm->allow & perm->deny) in verify_perm()
1196 if (perm->subtree & ~perm->allow) in verify_perm()
1198 if (perm->cond & (perm->allow | perm->deny)) in verify_perm()
1200 if (perm->kill & perm->allow) in verify_perm()
1202 if (perm->complain & (perm->allow | perm->deny)) in verify_perm()
1204 if (perm->prompt & (perm->allow | perm->deny)) in verify_perm()
1206 if (perm->complain & perm->prompt) in verify_perm()
1208 if (perm->hide & perm->allow) in verify_perm()