diff options
Diffstat (limited to 'net/core')
| -rw-r--r-- | net/core/dev.c | 1 | ||||
| -rw-r--r-- | net/core/flow_dissector.c | 2 | ||||
| -rw-r--r-- | net/core/scm.c | 4 |
3 files changed, 5 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index d540ced1f6c6..b13e5c766c11 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
| @@ -1545,7 +1545,6 @@ void net_enable_timestamp(void) | |||
| 1545 | return; | 1545 | return; |
| 1546 | } | 1546 | } |
| 1547 | #endif | 1547 | #endif |
| 1548 | WARN_ON(in_interrupt()); | ||
| 1549 | static_key_slow_inc(&netstamp_needed); | 1548 | static_key_slow_inc(&netstamp_needed); |
| 1550 | } | 1549 | } |
| 1551 | EXPORT_SYMBOL(net_enable_timestamp); | 1550 | EXPORT_SYMBOL(net_enable_timestamp); |
diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c index 9d4c7201400d..e187bf06d673 100644 --- a/net/core/flow_dissector.c +++ b/net/core/flow_dissector.c | |||
| @@ -140,6 +140,8 @@ ipv6: | |||
| 140 | flow->ports = *ports; | 140 | flow->ports = *ports; |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | flow->thoff = (u16) nhoff; | ||
| 144 | |||
| 143 | return true; | 145 | return true; |
| 144 | } | 146 | } |
| 145 | EXPORT_SYMBOL(skb_flow_dissect); | 147 | EXPORT_SYMBOL(skb_flow_dissect); |
diff --git a/net/core/scm.c b/net/core/scm.c index 905dcc6ad1e3..2dc6cdaaae8a 100644 --- a/net/core/scm.c +++ b/net/core/scm.c | |||
| @@ -24,6 +24,7 @@ | |||
| 24 | #include <linux/interrupt.h> | 24 | #include <linux/interrupt.h> |
| 25 | #include <linux/netdevice.h> | 25 | #include <linux/netdevice.h> |
| 26 | #include <linux/security.h> | 26 | #include <linux/security.h> |
| 27 | #include <linux/pid_namespace.h> | ||
| 27 | #include <linux/pid.h> | 28 | #include <linux/pid.h> |
| 28 | #include <linux/nsproxy.h> | 29 | #include <linux/nsproxy.h> |
| 29 | #include <linux/slab.h> | 30 | #include <linux/slab.h> |
| @@ -52,7 +53,8 @@ static __inline__ int scm_check_creds(struct ucred *creds) | |||
| 52 | if (!uid_valid(uid) || !gid_valid(gid)) | 53 | if (!uid_valid(uid) || !gid_valid(gid)) |
| 53 | return -EINVAL; | 54 | return -EINVAL; |
| 54 | 55 | ||
| 55 | if ((creds->pid == task_tgid_vnr(current) || nsown_capable(CAP_SYS_ADMIN)) && | 56 | if ((creds->pid == task_tgid_vnr(current) || |
| 57 | ns_capable(current->nsproxy->pid_ns->user_ns, CAP_SYS_ADMIN)) && | ||
| 56 | ((uid_eq(uid, cred->uid) || uid_eq(uid, cred->euid) || | 58 | ((uid_eq(uid, cred->uid) || uid_eq(uid, cred->euid) || |
| 57 | uid_eq(uid, cred->suid)) || nsown_capable(CAP_SETUID)) && | 59 | uid_eq(uid, cred->suid)) || nsown_capable(CAP_SETUID)) && |
| 58 | ((gid_eq(gid, cred->gid) || gid_eq(gid, cred->egid) || | 60 | ((gid_eq(gid, cred->gid) || gid_eq(gid, cred->egid) || |
