Lines Matching refs:msg

64 static int audit_send(const int fd, const struct audit_message *const msg)  in audit_send()  argument
72 ret = sendto(fd, msg, msg->header.nlmsg_len, 0, in audit_send()
79 if (ret != msg->header.nlmsg_len) in audit_send()
85 static int audit_recv(const int fd, struct audit_message *msg) in audit_recv() argument
92 if (!msg) in audit_recv()
93 msg = &msg_tmp; in audit_recv()
96 err = recvfrom(fd, msg, sizeof(*msg), 0, in audit_recv()
107 if (msg->header.nlmsg_type == NLMSG_ERROR) in audit_recv()
108 return msg->err.error; in audit_recv()
138 reply->err.msg.nlmsg_type != request->header.nlmsg_type); in audit_request()
147 struct audit_message msg = { in audit_filter_exe() local
149 .nlmsg_len = NLMSG_SPACE(sizeof(msg.rule)) + in audit_filter_exe()
168 memcpy(msg.rule.buf, filter->exe, filter->exe_len); in audit_filter_exe()
169 return audit_request(audit_fd, &msg, NULL); in audit_filter_exe()
174 struct audit_message msg = { in audit_filter_drop() local
176 .nlmsg_len = NLMSG_SPACE(sizeof(msg.rule)), in audit_filter_drop()
190 return audit_request(audit_fd, &msg, NULL); in audit_filter_drop()
195 const struct audit_message msg = { in audit_set_status() local
197 .nlmsg_len = NLMSG_SPACE(sizeof(msg.status)), in audit_set_status()
208 return audit_request(fd, &msg, NULL); in audit_set_status()
254 struct audit_message msg; in audit_match_record() local
265 memset(&msg, 0, sizeof(msg)); in audit_match_record()
266 err = audit_recv(audit_fd, &msg); in audit_match_record()
270 if (msg.header.nlmsg_type == type) in audit_match_record()
274 ret = regexec(&regex, msg.data, ARRAY_SIZE(matches), matches, 0); in audit_match_record()
276 printf("DATA: %s\n", msg.data); in audit_match_record()
289 memcpy(dom_id, msg.data + matches[1].rm_so, in audit_match_record()
345 struct audit_message msg; in audit_count_records() local
352 memset(&msg, 0, sizeof(msg)); in audit_count_records()
353 err = audit_recv(audit_fd, &msg); in audit_count_records()
361 switch (msg.header.nlmsg_type) { in audit_count_records()