]> git.pld-linux.org Git - packages/kernel.git/blob - kernel-vserver-fixes.patch
- up to 4.9.217
[packages/kernel.git] / kernel-vserver-fixes.patch
1 --- linux-3.3/fs/proc/base.c~   2012-03-19 21:44:42.000000000 +0100
2 +++ linux-3.3/fs/proc/base.c    2012-03-21 12:25:28.051092423 +0100
3 @@ -568,6 +568,8 @@
4                                  struct task_struct *task,
5                                  int hide_pid_min)
6  {
7 +       if (vx_check(0, VS_WATCH_P))
8 +               return true;
9         if (pid->hide_pid < hide_pid_min)
10                 return true;
11         if (in_group_p(pid->pid_gid))
12
13
14 diff -NurpP --minimal linux-4.9.207-vs2.3.9.11/net/core/sock.c linux-4.9.207-vs2.3.9.12/net/core/sock.c
15 --- linux-4.9.207-vs2.3.9.11/net/core/sock.c    2019-12-25 15:37:52.958413722 +0000
16 +++ linux-4.9.207-vs2.3.9.12/net/core/sock.c    2020-02-26 14:31:15.988223949 +0000
17 @@ -1343,9 +1343,10 @@ static struct sock *sk_prot_alloc(struct
18                 if (!try_module_get(prot->owner))
19                         goto out_free_sec;
20                 sk_tx_queue_clear(sk);
21 -       }
22 +
23                 sock_vx_init(sk);
24                 sock_nx_init(sk);
25 +       }
26  
27         return sk;
28  
This page took 0.029015 seconds and 3 git commands to generate.