X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fseq_file.c;h=99dffab4c4e43a900121f7b8c1b8cb3e7ac147c5;hb=6214b54cbf0778804de1297444c7661e70bc4d74;hp=14cf9de1dbe1751645ea1734d20808c9df6c398e;hpb=43a60c1792b13eed49220af0e1344bf48e3a0677;p=karo-tx-linux.git diff --git a/fs/seq_file.c b/fs/seq_file.c index 14cf9de1dbe1..99dffab4c4e4 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -56,6 +57,9 @@ int seq_open(struct file *file, const struct seq_operations *op) memset(p, 0, sizeof(*p)); mutex_init(&p->lock); p->op = op; +#ifdef CONFIG_USER_NS + p->user_ns = file->f_cred->user_ns; +#endif /* * Wrappers around seq_open(e.g. swaps_open) need to be