Skip to content

Commit

Permalink
sdcard: a program to create a "virtual" /sdcard pointed at a path
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
swetland committed Aug 13, 2010
1 parent 8417d69 commit 03ee947
Show file tree
Hide file tree
Showing 3 changed files with 1,340 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sdcard/Android.mk
Original file line number Diff line number Diff line change
@@ -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)
Loading

0 comments on commit 03ee947

Please sign in to comment.