Lines Matching refs:u
52 ad->u.net->v4info.saddr = ih->saddr; in ipv4_skb_to_auditdata()
53 ad->u.net->v4info.daddr = ih->daddr; in ipv4_skb_to_auditdata()
67 ad->u.net->sport = th->source; in ipv4_skb_to_auditdata()
68 ad->u.net->dport = th->dest; in ipv4_skb_to_auditdata()
76 ad->u.net->sport = uh->source; in ipv4_skb_to_auditdata()
77 ad->u.net->dport = uh->dest; in ipv4_skb_to_auditdata()
85 ad->u.net->sport = dh->dccph_sport; in ipv4_skb_to_auditdata()
86 ad->u.net->dport = dh->dccph_dport; in ipv4_skb_to_auditdata()
93 ad->u.net->sport = sh->source; in ipv4_skb_to_auditdata()
94 ad->u.net->dport = sh->dest; in ipv4_skb_to_auditdata()
122 ad->u.net->v6info.saddr = ip6->saddr; in ipv6_skb_to_auditdata()
123 ad->u.net->v6info.daddr = ip6->daddr; in ipv6_skb_to_auditdata()
143 ad->u.net->sport = th->source; in ipv6_skb_to_auditdata()
144 ad->u.net->dport = th->dest; in ipv6_skb_to_auditdata()
154 ad->u.net->sport = uh->source; in ipv6_skb_to_auditdata()
155 ad->u.net->dport = uh->dest; in ipv6_skb_to_auditdata()
165 ad->u.net->sport = dh->dccph_sport; in ipv6_skb_to_auditdata()
166 ad->u.net->dport = dh->dccph_dport; in ipv6_skb_to_auditdata()
175 ad->u.net->sport = sh->source; in ipv6_skb_to_auditdata()
176 ad->u.net->dport = sh->dest; in ipv6_skb_to_auditdata()
221 BUILD_BUG_ON(sizeof(a->u) > sizeof(void *)*2); in dump_common_audit_data()
230 audit_log_format(ab, " key=%d ", a->u.ipc_id); in dump_common_audit_data()
233 audit_log_format(ab, " capability=%d ", a->u.cap); in dump_common_audit_data()
238 audit_log_d_path(ab, " path=", &a->u.path); in dump_common_audit_data()
240 inode = d_backing_inode(a->u.path.dentry); in dump_common_audit_data()
251 audit_log_d_path(ab, " path=", &a->u.file->f_path); in dump_common_audit_data()
253 inode = file_inode(a->u.file); in dump_common_audit_data()
264 audit_log_d_path(ab, " path=", &a->u.op->path); in dump_common_audit_data()
266 inode = a->u.op->path.dentry->d_inode; in dump_common_audit_data()
273 audit_log_format(ab, " ioctlcmd=0x%hx", a->u.op->cmd); in dump_common_audit_data()
280 audit_log_untrustedstring(ab, a->u.dentry->d_name.name); in dump_common_audit_data()
282 inode = d_backing_inode(a->u.dentry); in dump_common_audit_data()
294 inode = a->u.inode; in dump_common_audit_data()
308 struct task_struct *tsk = a->u.tsk; in dump_common_audit_data()
321 if (a->u.net->sk) { in dump_common_audit_data()
322 struct sock *sk = a->u.net->sk; in dump_common_audit_data()
323 struct unix_sock *u; in dump_common_audit_data() local
354 u = unix_sk(sk); in dump_common_audit_data()
355 addr = smp_load_acquire(&u->addr); in dump_common_audit_data()
358 if (u->path.dentry) { in dump_common_audit_data()
359 audit_log_d_path(ab, " path=", &u->path); in dump_common_audit_data()
373 switch (a->u.net->family) { in dump_common_audit_data()
375 print_ipv4_addr(ab, a->u.net->v4info.saddr, in dump_common_audit_data()
376 a->u.net->sport, in dump_common_audit_data()
378 print_ipv4_addr(ab, a->u.net->v4info.daddr, in dump_common_audit_data()
379 a->u.net->dport, in dump_common_audit_data()
383 print_ipv6_addr(ab, &a->u.net->v6info.saddr, in dump_common_audit_data()
384 a->u.net->sport, in dump_common_audit_data()
386 print_ipv6_addr(ab, &a->u.net->v6info.daddr, in dump_common_audit_data()
387 a->u.net->dport, in dump_common_audit_data()
391 if (a->u.net->netif > 0) { in dump_common_audit_data()
395 dev = dev_get_by_index(&init_net, a->u.net->netif); in dump_common_audit_data()
404 audit_log_format(ab, " key_serial=%u", a->u.key_struct.key); in dump_common_audit_data()
405 if (a->u.key_struct.key_desc) { in dump_common_audit_data()
407 audit_log_untrustedstring(ab, a->u.key_struct.key_desc); in dump_common_audit_data()
413 audit_log_untrustedstring(ab, a->u.kmod_name); in dump_common_audit_data()
420 memcpy(&sbn_pfx.s6_addr, &a->u.ibpkey->subnet_prefix, in dump_common_audit_data()
421 sizeof(a->u.ibpkey->subnet_prefix)); in dump_common_audit_data()
423 a->u.ibpkey->pkey, &sbn_pfx); in dump_common_audit_data()
428 a->u.ibendport->dev_name, in dump_common_audit_data()
429 a->u.ibendport->port); in dump_common_audit_data()