]> git.pld-linux.org Git - packages/kernel.git/blame - kernel-vserver-fixes.patch
- fix vserver patch for 3.14.5
[packages/kernel.git] / kernel-vserver-fixes.patch
CommitLineData
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))
fcb44bf1
JR
12--- linux-3.13.10/fs/namei.c 2014-04-17 01:12:32.000000000 +0000
13+++ linux-3.13.10-vs2.3.6.11/fs/namei.c 2014-04-17 01:17:10.000000000 +0000
14@@ -1238,8 +1335,7 @@ static void follow_dotdot(struct nameida
15
16 if (nd->path.dentry == nd->root.dentry &&
17 nd->path.mnt == nd->root.mnt) {
18- /* for sane '/' avoid follow_mount() */
19- return;
20+ break;
21 }
22 if (nd->path.dentry != nd->path.mnt->mnt_root) {
23 /* rare case of legitimate dget_parent()... */
This page took 1.002441 seconds and 4 git commands to generate.