Lines Matching refs:aad
50 if (aad(sa)->request & AA_AUDIT_FILE_MASK) { in file_audit_cb()
52 map_mask_to_chr_mask(aad(sa)->request)); in file_audit_cb()
55 if (aad(sa)->denied & AA_AUDIT_FILE_MASK) { in file_audit_cb()
57 map_mask_to_chr_mask(aad(sa)->denied)); in file_audit_cb()
60 if (aad(sa)->request & AA_AUDIT_FILE_MASK) { in file_audit_cb()
64 from_kuid(&init_user_ns, aad(sa)->fs.ouid)); in file_audit_cb()
67 if (aad(sa)->peer) { in file_audit_cb()
69 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in file_audit_cb()
71 } else if (aad(sa)->fs.target) { in file_audit_cb()
73 audit_log_untrustedstring(ab, aad(sa)->fs.target); in file_audit_cb()
101 aad(&sa)->request = request; in aa_audit_file()
102 aad(&sa)->name = name; in aa_audit_file()
103 aad(&sa)->fs.target = target; in aa_audit_file()
104 aad(&sa)->peer = tlabel; in aa_audit_file()
105 aad(&sa)->fs.ouid = ouid; in aa_audit_file()
106 aad(&sa)->info = info; in aa_audit_file()
107 aad(&sa)->error = error; in aa_audit_file()
110 if (likely(!aad(&sa)->error)) { in aa_audit_file()
117 aad(&sa)->request &= mask; in aa_audit_file()
119 if (likely(!aad(&sa)->request)) in aa_audit_file()
124 aad(&sa)->request = aad(&sa)->request & ~perms->allow; in aa_audit_file()
125 AA_BUG(!aad(&sa)->request); in aa_audit_file()
127 if (aad(&sa)->request & perms->kill) in aa_audit_file()
131 if ((aad(&sa)->request & perms->quiet) && in aa_audit_file()
134 aad(&sa)->request &= ~perms->quiet; in aa_audit_file()
136 if (!aad(&sa)->request) in aa_audit_file()
137 return aad(&sa)->error; in aa_audit_file()
140 aad(&sa)->denied = aad(&sa)->request & ~perms->allow; in aa_audit_file()