2003-02-26 18:02:24

by Jeff Dike

[permalink] [raw]
Subject: [PATCH] Add UML filesystems

Please pull
http://jdike.stearns.org:5000/fs-2.5

This adds the two UML-specific filesystems to 2.5. hostfs allows directories
on the host to be mounted as a filesystem within a UML. hppfs allows a UML's
/proc to be modified from the host. This is useful in honeypots by allowing
the UML /proc to be made to look like a physical box, making it harder for
an attacker to recognize a compromised box as a UML.

Note that these add the filesystems under arch/um/fs since these are only
usable in UML. If it would be better to have them under fs instead, then
I will fix that.

Jeff

arch/um/Kconfig | 13
arch/um/Makefile | 1
arch/um/fs/Makefile | 17
arch/um/fs/hostfs/Makefile | 36 +
arch/um/fs/hostfs/hostfs.h | 79 +++
arch/um/fs/hostfs/hostfs_kern.c | 1008 ++++++++++++++++++++++++++++++++++++++++
arch/um/fs/hostfs/hostfs_user.c | 355 ++++++++++++++
arch/um/fs/hppfs/Makefile | 19
arch/um/fs/hppfs/hppfs_kern.c | 794 +++++++++++++++++++++++++++++++
9 files changed, 2322 insertions(+)

[email protected], 2003-02-24 17:26:48-05:00, [email protected]
Fixed hppfs_lookup so that hppfs does more than just mount OK.

[email protected], 2003-02-24 13:17:04-05:00, [email protected]
Fixed the interface of stat_file.

[email protected], 2003-02-24 01:50:34-05:00, [email protected]
A minor fix to hostfs.
hppfs now compiles and mounts.

[email protected], 2003-02-23 22:49:54-05:00, [email protected]
Added a first-pass update of hppfs to 2.5.

[email protected], 2003-02-23 21:48:56-05:00, [email protected]
Some small compilation fixes to hostfs.

[email protected], 2003-02-23 20:56:17-05:00, [email protected]
Merged Petr Baudis' hostfs updates to 2.5.