Lines Matching refs:lperms
312 struct aa_perms lperms = {}, perms; in profile_path_link() local
333 cond, &lperms); in profile_path_link()
335 if (!(lperms.allow & AA_MAY_LINK)) in profile_path_link()
345 lperms.audit = perms.audit; in profile_path_link()
346 lperms.quiet = perms.quiet; in profile_path_link()
347 lperms.kill = perms.kill; in profile_path_link()
351 lperms = perms; in profile_path_link()
366 request = lperms.allow & ~AA_MAY_LINK; in profile_path_link()
367 lperms.allow &= perms.allow | AA_MAY_LINK; in profile_path_link()
369 request |= AA_AUDIT_FILE_MASK & (lperms.allow & ~perms.allow); in profile_path_link()
370 if (request & ~lperms.allow) { in profile_path_link()
372 } else if ((lperms.allow & MAY_EXEC) && in profile_path_link()
373 !xindex_is_subset(lperms.xindex, perms.xindex)) { in profile_path_link()
374 lperms.allow &= ~MAY_EXEC; in profile_path_link()
384 return aa_audit_file(profile, &lperms, OP_LINK, request, lname, tname, in profile_path_link()