X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fseq_file.c;h=99dffab4c4e43a900121f7b8c1b8cb3e7ac147c5;hb=c0703c12ef6744b6d2565ec67a15aaf25d534abd;hp=14cf9de1dbe1751645ea1734d20808c9df6c398e;hpb=785a7de9ee5ab1ff2ec9c6e58667bde1055f2f1b;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