Lines Matching refs:ad
55 struct apparmor_audit_data *ad = aad(sa); in audit_signal_cb() local
57 if (ad->request & AA_SIGNAL_PERM_MASK) { in audit_signal_cb()
59 audit_signal_mask(ad->request)); in audit_signal_cb()
60 if (ad->denied & AA_SIGNAL_PERM_MASK) { in audit_signal_cb()
62 audit_signal_mask(ad->denied)); in audit_signal_cb()
65 if (ad->signal == SIGUNKNOWN) in audit_signal_cb()
67 ad->unmappedsig); in audit_signal_cb()
68 else if (ad->signal < MAXMAPPED_SIGNAME) in audit_signal_cb()
69 audit_log_format(ab, " signal=%s", sig_names[ad->signal]); in audit_signal_cb()
72 ad->signal - SIGRT_BASE); in audit_signal_cb()
74 aa_label_xaudit(ab, labels_ns(ad->subj_label), ad->peer, in audit_signal_cb()
81 struct apparmor_audit_data *ad) in profile_signal_perm() argument
92 ad->subj_cred = cred; in profile_signal_perm()
93 ad->peer = peer; in profile_signal_perm()
97 ad->signal); in profile_signal_perm()
100 return aa_check_perms(profile, &perms, request, ad, audit_signal_cb); in profile_signal_perm()
108 DEFINE_AUDIT_DATA(ad, LSM_AUDIT_DATA_NONE, AA_CLASS_SIGNAL, OP_SIGNAL); in aa_may_signal()
110 ad.signal = map_signal_num(sig); in aa_may_signal()
111 ad.unmappedsig = sig; in aa_may_signal()
114 MAY_WRITE, &ad), in aa_may_signal()
116 MAY_READ, &ad)); in aa_may_signal()