Lines Matching refs:lperms
375 struct aa_perms lperms = {}, perms; in profile_path_link() local
395 cond, &lperms); in profile_path_link()
397 if (!(lperms.allow & AA_MAY_LINK)) in profile_path_link()
407 lperms.audit = perms.audit; in profile_path_link()
408 lperms.quiet = perms.quiet; in profile_path_link()
409 lperms.kill = perms.kill; in profile_path_link()
413 lperms = perms; in profile_path_link()
428 request = lperms.allow & ~AA_MAY_LINK; in profile_path_link()
429 lperms.allow &= perms.allow | AA_MAY_LINK; in profile_path_link()
431 request |= AA_AUDIT_FILE_MASK & (lperms.allow & ~perms.allow); in profile_path_link()
432 if (request & ~lperms.allow) { in profile_path_link()
434 } else if ((lperms.allow & MAY_EXEC) && in profile_path_link()
435 !xindex_is_subset(lperms.xindex, perms.xindex)) { in profile_path_link()
436 lperms.allow &= ~MAY_EXEC; in profile_path_link()
446 return aa_audit_file(profile, &lperms, OP_LINK, request, lname, tname, in profile_path_link()