summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/files/Check_correct_namespace_when_spoofing_pid_over_SCM_RIGHTS.patch
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2016-02-18 15:33:33 +0100
committerAdrian Dudau <adrian.dudau@enea.com>2016-02-22 15:05:50 +0100
commit4fa4c5f1b92fd0293319a011bb5bf5bca089bd5f (patch)
tree6a898651d9180b8a5189b92e507a9c237e6a9083 /recipes-kernel/linux/files/Check_correct_namespace_when_spoofing_pid_over_SCM_RIGHTS.patch
parent98215b7665c965316eec60348bdbdf6f1b3cbdcf (diff)
downloadmeta-enea-bsp-arm-4fa4c5f1b92fd0293319a011bb5bf5bca089bd5f.tar.gz
recipes-kernel: remve unsupported targets
Signed-off-by: Tudor Florea <tudor.florea@enea.com> Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'recipes-kernel/linux/files/Check_correct_namespace_when_spoofing_pid_over_SCM_RIGHTS.patch')
-rw-r--r--recipes-kernel/linux/files/Check_correct_namespace_when_spoofing_pid_over_SCM_RIGHTS.patch13
1 files changed, 0 insertions, 13 deletions
diff --git a/recipes-kernel/linux/files/Check_correct_namespace_when_spoofing_pid_over_SCM_RIGHTS.patch b/recipes-kernel/linux/files/Check_correct_namespace_when_spoofing_pid_over_SCM_RIGHTS.patch
deleted file mode 100644
index 79e52c3..0000000
--- a/recipes-kernel/linux/files/Check_correct_namespace_when_spoofing_pid_over_SCM_RIGHTS.patch
+++ /dev/null
@@ -1,13 +0,0 @@
1diff --git a/net/core/scm.c b/net/core/scm.c
2index 03795d0..b4da80b 100644
3--- a/net/core/scm.c
4+++ b/net/core/scm.c
5@@ -54,7 +54,7 @@ static __inline__ int scm_check_creds(struct ucred *creds)
6 return -EINVAL;
7
8 if ((creds->pid == task_tgid_vnr(current) ||
9- ns_capable(current->nsproxy->pid_ns->user_ns, CAP_SYS_ADMIN)) &&
10+ ns_capable(task_active_pid_ns(current)->user_ns, CAP_SYS_ADMIN)) &&
11 ((uid_eq(uid, cred->uid) || uid_eq(uid, cred->euid) ||
12 uid_eq(uid, cred->suid)) || nsown_capable(CAP_SETUID)) &&
13 ((gid_eq(gid, cred->gid) || gid_eq(gid, cred->egid) ||