VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Christian Brauner <christian.brauner@ubuntu.com> 2020-05-05 16:04:31 +0200 committer: Christian Brauner <christian.brauner@ubuntu.com> 2020-05-13 11:41:22 +0200 commit: 303cc571d107b3641d6487061b748e70ffe15ce4 parent: f2a8d52e0a4db968c346c4332630a71cba377567
Commit Summary:
nsproxy: attach to namespaces via pidfds
Diffstat:
1 file changed, 5 insertions, 0 deletions
diff --git a/fs/nsfs.c b/fs/nsfs.c
index 4f1205725cfe..800c1d0eb0d0 100644
--- a/fs/nsfs.c
+++ b/fs/nsfs.c
@@ -229,6 +229,11 @@ int ns_get_name(char *buf, size_t size, struct task_struct *task,
 	return res;
 }
 
+bool proc_ns_file(const struct file *file)
+{
+	return file->f_op == &ns_file_operations;
+}
+
 struct file *proc_ns_fget(int fd)
 {
 	struct file *file;