Lines Matching refs:perms
96 * @request: requested perms
106 struct file_perms perms;
111 perms.allow = AA_MAY_CHANGE_PROFILE | AA_MAY_ONEXEC;
112 perms.audit = perms.quiet = perms.kill = 0;
113 return perms;
118 aa_str_perms(profile->file.dfa, start, name, &cond, &perms);
119 if (COMBINED_PERM_MASK(perms) & request)
120 return perms;
126 aa_str_perms(profile->file.dfa, state, name, &cond, &perms);
128 return perms;
350 struct file_perms perms = {};
402 state = aa_str_perms(profile->file.dfa, state, name, &cond, &perms);
406 if (!(perms.allow & AA_MAY_ONEXEC))
423 if (perms.allow & MAY_EXEC) {
425 new_profile = x_to_profile(profile, name, perms.xindex);
427 if (perms.xindex & AA_X_INHERIT) {
435 } else if (perms.xindex & AA_X_UNCONFINED) {
453 perms.xindex |= AA_X_UNSAFE;
485 if (!(perms.xindex & AA_X_UNSAFE)) {
508 error = aa_audit_file(profile, &perms, GFP_KERNEL, OP_EXEC, MAY_EXEC,
607 struct file_perms perms = {};
680 perms.kill = AA_MAY_CHANGEHAT;
691 perms.kill = AA_MAY_CHANGEHAT;
698 error = aa_audit_file(profile, &perms, GFP_KERNEL,
732 struct file_perms perms = {};
774 perms = change_profile_perms(profile, ns, hname, request,
776 if (!(perms.allow & request)) {
814 error = aa_audit_file(profile, &perms, GFP_KERNEL, op, request,