update
authorErez Zadok <ezk@cs.sunysb.edu>
Fri, 13 May 2022 22:02:36 +0000 (18:02 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 13 May 2022 22:02:36 +0000 (18:02 -0400)
bug-fixes/basic-user-ns.log [new file with mode: 0644]

diff --git a/bug-fixes/basic-user-ns.log b/bug-fixes/basic-user-ns.log
new file mode 100644 (file)
index 0000000..63a169d
--- /dev/null
@@ -0,0 +1,15 @@
+Wrapfs: port to new user_namespace and mmap APIs
+
+New struct user_namespace arg is now passed to many VFS ops.  See details
+here: https://lwn.net/Articles/842423.  Like eCryptfs, we can't currently
+stack on top of idmapped file systems, so check for it at mount and
+prohibit.  Instead, we use the default init_user_ns global
+
+Also at mount, we prohibit mount on top of another wrapfs mount, due to
+known incompatibilities.
+
+mmap ops ->fault and ->page_mkwrite take a different vma struct with some
+const args, so extract the right fields as needed.
+
+Signed-off-by: Andrew Burford <aburford@cs.stonybrook.edu>
+Signed-off-by: Erez Zadok <ezk@cs.stonybrook.edu>