From: Eric W. Biederman Date: Thu, 24 May 2012 00:01:20 +0000 (-0600) Subject: userns: Make seq_file's user namespace accessible X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~49^2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adb37c4c67f807f16beb222028fb3ce9a354dc2b;p=pandora-kernel.git userns: Make seq_file's user namespace accessible struct file already has a user namespace associated with it in file->f_cred->user_ns, unfortunately because struct seq_file has no struct file backpointer associated with it, it is difficult to get at the user namespace in seq_file context. Therefore add a helper function seq_user_ns to return the associated user namespace and a user_ns field to struct seq_file to be used in implementing seq_user_ns. Cc: Al Viro Cc: Eric Dumazet Cc: KAMEZAWA Hiroyuki Cc: Alexey Dobriyan Acked-by: David S. Miller Acked-by: Serge Hallyn Signed-off-by: Eric W. Biederman --- Reading git-diff-tree failed