summaryrefslogtreecommitdiff
path: root/linktype.h
blob: 80b5f2df82648eff9ee6e2ddbd989f17109c9ab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * netsniff-ng - the packet sniffing beast
 * Copyright 2009 - 2013 Daniel Borkmann.
 * Subject to the GPL, version 2.
 */

#ifndef LINKTYPE_H
#define LINKTYPE_H

#define LINKTYPE_NULL				0
#define LINKTYPE_EN10MB				1
#define LINKTYPE_EN3MB				2
#define LINKTYPE_AX25				3
#define LINKTYPE_PRONET				4
#define LINKTYPE_CHAOS				5
#define LINKTYPE_IEEE802			6
#define LINKTYPE_SLIP				8
#define LINKTYPE_PPP				9
#define LINKTYPE_FDDI				10
#define LINKTYPE_ATM_CLIP			19
#define LINKTYPE_C_HDLC				104
#define LINKTYPE_IEEE802_11			105
#define LINKTYPE_FRELAY				107
#define LINKTYPE_LINUX_SLL			113
#define LINKTYPE_ECONET				115
#define LINKTYPE_IEEE802_11_RADIOTAP		127
#define LINKTYPE_ARCNET_LINUX			129
#define LINKTYPE_LINUX_IRDA			144
#define LINKTYPE_CAN20B				190
#define LINKTYPE_IEEE802_15_4_LINUX		191
#define LINKTYPE_INFINIBAND			247
#define LINKTYPE_NETLINK			253
#define LINKTYPE_MAX				254

#endif
class='commit-subject'>audit: use proper refcount locking on audit_sock
Resetting audit_sock appears to be racy. audit_sock was being copied and dereferenced without using a refcount on the source sock. Bump the refcount on the underlying sock when we store a refrence in audit_sock and release it when we reset audit_sock. audit_sock modification needs the audit_cmd_mutex. See: https://lkml.org/lkml/2016/11/26/232 Thanks to Eric Dumazet <edumazet@google.com> and Cong Wang <xiyou.wangcong@gmail.com> on ideas how to fix it. Signed-off-by: Richard Guy Briggs <rgb@redhat.com> Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com> [PM: fixed the comment block text formatting for auditd_reset()] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat