[kernel/f15] Fix broken procfs backport (rhbz 782961)

Josh Boyer jwboyer at fedoraproject.org
Thu Jan 19 01:54:02 UTC 2012


commit 386367acf48761b078762d7bd51d2d42ed391cb5
Author: Josh Boyer <jwboyer at redhat.com>
Date:   Wed Jan 18 20:00:25 2012 -0500

    Fix broken procfs backport (rhbz 782961)

 kernel.spec                                    |    5 ++++-
 procfs-add-hidepid-and-gid-mount-options.patch |    4 ++--
 procfs-parse-mount-options.patch               |    2 +-
 3 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/kernel.spec b/kernel.spec
index 3c954b1..5db1b31 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -42,7 +42,7 @@ Summary: The Linux kernel
 # When changing real_sublevel below, reset this by hand to 1
 # (or to 0 and then use rpmdev-bumpspec).
 #
-%global baserelease 1
+%global baserelease 2
 %global fedora_build %{baserelease}
 
 # real_sublevel is the 3.x kernel version we're starting with
@@ -2038,6 +2038,9 @@ fi
 # and build.
 
 %changelog
+* Wed Jan 18 2012 Josh Boyer <jwboyer at redhat.com> 2.6.41.10-2
+- Fix broken procfs backport (rhbz 782961)
+
 * Wed Jan 18 2012 Josh Boyer <jwboyer at redhat.com> 2.6.41.10-1
 - Linux 3.1.10
 - /proc/pid/* information leak (rhbz 782686)
diff --git a/procfs-add-hidepid-and-gid-mount-options.patch b/procfs-add-hidepid-and-gid-mount-options.patch
index 24156b0..803f77d 100644
--- a/procfs-add-hidepid-and-gid-mount-options.patch
+++ b/procfs-add-hidepid-and-gid-mount-options.patch
@@ -262,9 +262,9 @@ index 27c762f..84fd323 100644
 +++ b/fs/proc/inode.c
 @@ -106,6 +106,14 @@ void __init proc_init_inodecache(void)
  
- static int proc_show_options(struct seq_file *seq, struct dentry *root)
+ static int proc_show_options(struct seq_file *seq, struct vfsmount *vfs)
  {
-+	struct super_block *sb = root->d_sb;
++	struct super_block *sb = vfs->mnt_sb;
 +	struct pid_namespace *pid = sb->s_fs_info;
 +
 +	if (pid->pid_gid)
diff --git a/procfs-parse-mount-options.patch b/procfs-parse-mount-options.patch
index 99684c4..0187a1d 100644
--- a/procfs-parse-mount-options.patch
+++ b/procfs-parse-mount-options.patch
@@ -50,7 +50,7 @@ index 51a1766..27c762f 100644
  					     init_once);
  }
  
-+static int proc_show_options(struct seq_file *seq, struct dentry *root)
++static int proc_show_options(struct seq_file *seq, struct vfsmount *vfs)
 +{
 +	return 0;
 +}


More information about the scm-commits mailing list