summaryrefslogtreecommitdiffstats
path: root/sdcard/Android.mk
diff options
context:
space:
mode:
authorBrian Swetland <swetland@google.com>2010-08-12 18:01:08 -0700
committerBrian Swetland <swetland@google.com>2010-08-12 18:01:08 -0700
commit03ee9479a4ed67689b9bbccda20c60800a38b178 (patch)
treed005c57e4a53d9d2a76e60069ba518187789f8cb /sdcard/Android.mk
parent8417d698cff733f3c5de08f2fa96b67bf4a9f795 (diff)
downloadsystem_core-03ee9479a4ed67689b9bbccda20c60800a38b178.zip
system_core-03ee9479a4ed67689b9bbccda20c60800a38b178.tar.gz
system_core-03ee9479a4ed67689b9bbccda20c60800a38b178.tar.bz2
sdcard: a program to create a "virtual" /sdcard pointed at a path
sdcard is a program that uses FUSE to emulate FAT-on-sdcard style directory permissions (all files are given fixed owner, group, and permissions at creation, owner, group, and permissions are not changeable, symlinks and hardlinks are not createable, etc. usage: sdcard <path> <uid> <gid> It must be run as root, but will change to uid/gid as soon as it mounts a filesystem on /sdcard. It will refuse to run if uid or gid are zero. Change-Id: I9a5d2e5daaebeee632f8470172cbb77b7fa689f8 Signed-off-by: Brian Swetland <swetland@google.com>
Diffstat (limited to 'sdcard/Android.mk')
-rw-r--r--sdcard/Android.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/sdcard/Android.mk b/sdcard/Android.mk
new file mode 100644
index 0000000..c430ac8
--- /dev/null
+++ b/sdcard/Android.mk
@@ -0,0 +1,10 @@
+LOCAL_PATH:= $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES:= sdcard.c
+LOCAL_MODULE:= sdcard
+
+LOCAL_SHARED_LIBRARIES := libc
+
+include $(BUILD_EXECUTABLE)