Lines Matching refs:lperms
362 struct aa_perms lperms = {}, perms; in profile_path_link() local
382 cond, &lperms); in profile_path_link()
384 if (!(lperms.allow & AA_MAY_LINK)) in profile_path_link()
394 lperms.audit = perms.audit; in profile_path_link()
395 lperms.quiet = perms.quiet; in profile_path_link()
396 lperms.kill = perms.kill; in profile_path_link()
400 lperms = perms; in profile_path_link()
415 request = lperms.allow & ~AA_MAY_LINK; in profile_path_link()
416 lperms.allow &= perms.allow | AA_MAY_LINK; in profile_path_link()
418 request |= AA_AUDIT_FILE_MASK & (lperms.allow & ~perms.allow); in profile_path_link()
419 if (request & ~lperms.allow) { in profile_path_link()
421 } else if ((lperms.allow & MAY_EXEC) && in profile_path_link()
422 !xindex_is_subset(lperms.xindex, perms.xindex)) { in profile_path_link()
423 lperms.allow &= ~MAY_EXEC; in profile_path_link()
433 return aa_audit_file(profile, &lperms, OP_LINK, request, lname, tname, in profile_path_link()