]>
Commit | Line | Data |
---|---|---|
0232a98e AM |
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)) | |
9b783a63 AM |
12 | --- linux-4.1.3-vs2.3.8.2/kernel/signal.c 2015-09-20 20:06:03.000000000 +0200 |
13 | +++ testing41/kernel/signal.c 2015-12-05 13:01:00.599373873 +0100 | |
14 | @@ -1369,8 +1369,14 @@ | |
15 | for (;;) { | |
16 | rcu_read_lock(); | |
17 | p = pid_task(pid, PIDTYPE_PID); | |
18 | - if (p && vx_check(vx_task_xid(p), VS_IDENT)) | |
19 | - error = group_send_sig_info(sig, info, p); | |
20 | + if (p) { | |
21 | + if (vx_check(vx_task_xid(p), VS_IDENT)) | |
22 | + error = group_send_sig_info(sig, info, p); | |
23 | + else { | |
24 | + rcu_read_unlock(); | |
25 | + return -ESRCH; | |
26 | + } | |
27 | + } | |
28 | rcu_read_unlock(); | |
29 | if (likely(!p || error != -ESRCH)) | |
30 | return error; |