Lines Matching refs:lperms
364 struct aa_perms lperms = {}, perms; in profile_path_link() local
384 cond, &lperms); in profile_path_link()
386 if (!(lperms.allow & AA_MAY_LINK)) in profile_path_link()
396 lperms.audit = perms.audit; in profile_path_link()
397 lperms.quiet = perms.quiet; in profile_path_link()
398 lperms.kill = perms.kill; in profile_path_link()
402 lperms = perms; in profile_path_link()
417 request = lperms.allow & ~AA_MAY_LINK; in profile_path_link()
418 lperms.allow &= perms.allow | AA_MAY_LINK; in profile_path_link()
420 request |= AA_AUDIT_FILE_MASK & (lperms.allow & ~perms.allow); in profile_path_link()
421 if (request & ~lperms.allow) { in profile_path_link()
423 } else if ((lperms.allow & MAY_EXEC) && in profile_path_link()
424 !xindex_is_subset(lperms.xindex, perms.xindex)) { in profile_path_link()
425 lperms.allow &= ~MAY_EXEC; in profile_path_link()
435 return aa_audit_file(profile, &lperms, OP_LINK, request, lname, tname, in profile_path_link()