Whamcloud - gitweb
AOSP: e2fsdroid: read and enforce android's permissions
authorAdrien Schildknecht <adriens@google.com>
Wed, 30 Nov 2016 06:01:52 +0000 (22:01 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 24 May 2017 02:09:54 +0000 (22:09 -0400)
commit1e43f83f7ab338f64f77299031e0b8bf1b43e034
tree65ad9d296b31780cf9010402b2747661fc13eb34
parented8e189b38a96cf678e0ef901dd9a3fdb6c133d4
AOSP: e2fsdroid: read and enforce android's permissions

Set the permissions and the extended attributes as defined by fs_config
and selinux.

Test: create an image with make_ext4 and with mke2fs + e2fsdroid
      Compare the output of:
      for f in `find . | sort`; do
          xattr -l "$f"; md5sum "$f" ls -lah "$f"
      done

Change-Id: I64c97f81c7f5e2bcf3cee3431e410d064cf0735a
From AOSP commit: 4c1e1f46301b3ff7f60be1d8e943ecc23b917ca7

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
contrib/android/Android.mk
contrib/android/e2fsdroid.c
contrib/android/perms.c [new file with mode: 0644]
contrib/android/perms.h [new file with mode: 0644]