Lines Matching refs:op
801 static int audit_policy(struct aa_label *subj_label, const char *op, in audit_policy() argument
805 DEFINE_AUDIT_DATA(ad, LSM_AUDIT_DATA_NONE, AA_CLASS_NONE, op); in audit_policy()
916 const char *op; in aa_may_manage_policy() local
919 op = OP_PROF_RM; in aa_may_manage_policy()
921 op = OP_PROF_REPL; in aa_may_manage_policy()
923 op = OP_PROF_LOAD; in aa_may_manage_policy()
927 return audit_policy(label, op, NULL, NULL, "policy_locked", in aa_may_manage_policy()
931 return audit_policy(label, op, NULL, NULL, "not policy admin", in aa_may_manage_policy()
1096 const char *op; in aa_replace_profiles() local
1100 op = mask & AA_MAY_REPLACE_POLICY ? OP_PROF_REPL : OP_PROF_LOAD; in aa_replace_profiles()
1135 op = OP_PROF_LOAD; in aa_replace_profiles()
1257 op = (!ent->old && !ent->rename) ? OP_PROF_LOAD : OP_PROF_REPL; in aa_replace_profiles()
1262 audit_policy(label, op, ns_name, ent->new->base.hname, in aa_replace_profiles()
1275 audit_policy(label, op, ns_name, ent->new->base.hname, NULL, in aa_replace_profiles()
1312 op = (ent && !ent->old) ? OP_PROF_LOAD : OP_PROF_REPL; in aa_replace_profiles()
1314 audit_policy(label, op, ns_name, ent ? ent->new->base.hname : NULL, in aa_replace_profiles()
1324 op = (!tmp->old) ? OP_PROF_LOAD : OP_PROF_REPL; in aa_replace_profiles()
1325 audit_policy(label, op, ns_name, tmp->new->base.hname, info, in aa_replace_profiles()