Remove mcoverlayfs code

mcoverlayfs code is now unused (technically should work on top of the
soft emulation but not well tested, and untested unused code is bad).
Remove it.

Left the unshare/bind_mount_recursive code in mcexec in a new
MCEXEC_BIND_MOUNT ifdef (only in config.h.in directly to discourage use.
it disables the ioctl as well, but the main code is still compiled to
keep up to date with linux api changes... although it's using kallsyms
lookup so it does not validate much more than "the symbol still exists")

I honestly think this should go as well (people who would want to use it
are root and could do it manually), but will give up for now.

Change-Id: I832b6a8ab19e24ed67a1a5044b1c6c32381ae0aa
This commit is contained in:
Dominique Martinet
2019-02-15 09:32:12 +09:00
committed by Masamichi Takagi
parent 0bb612caea
commit 791e8c2114
38 changed files with 12 additions and 20839 deletions

View File

@ -6,8 +6,9 @@
/* version number */
#define MCKERNEL_VERSION "${MCKERNEL_VERSION}"
/* whether mcoverlayfs is enabled */
#cmakedefine ENABLE_MCOVERLAYFS 1
/* enable the required code for mcexec to be able to use bind mount
* there is no config option as its use is discouraged */
// #define MCEXEC_BIND_MOUNT 1
/* whether memdump feature is enabled */
#cmakedefine ENABLE_MEMDUMP 1