summaryrefslogtreecommitdiffstats
path: root/cpio
diff options
context:
space:
mode:
authorNick Kralevich2013-02-07 16:22:12 -0600
committerNick Kralevich2013-02-20 14:51:28 -0600
commite9e74f3c881bd73bd86be4db8b12200a61f143e1 (patch)
tree8fc5caf9ac0548fa1665dea59e6faf0a3f8a7c28 /cpio
parent523a20901b2afce7ad02c0011d70ed57f8bbb997 (diff)
downloadplatform-system-core-e9e74f3c881bd73bd86be4db8b12200a61f143e1.tar.gz
platform-system-core-e9e74f3c881bd73bd86be4db8b12200a61f143e1.tar.xz
platform-system-core-e9e74f3c881bd73bd86be4db8b12200a61f143e1.zip
Add support for filesystem capabilities.
Modify android_filesystem_config.h and add a capabilities field. This field can be used to add filesystem capabilities to a particular file. Change-Id: If8953a322457ea7275aa6df75660b714e6dc678a
Diffstat (limited to 'cpio')
-rw-r--r--cpio/mkbootfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpio/mkbootfs.c b/cpio/mkbootfs.c
index 323a09d6e..3569e27f4 100644
--- a/cpio/mkbootfs.c
+++ b/cpio/mkbootfs.c
@@ -55,6 +55,7 @@ static int total_size = 0;
55 55
56static void fix_stat(const char *path, struct stat *s) 56static void fix_stat(const char *path, struct stat *s)
57{ 57{
58 uint64_t capabilities;
58 if (canned_config) { 59 if (canned_config) {
59 // Use the list of file uid/gid/modes loaded from the file 60 // Use the list of file uid/gid/modes loaded from the file
60 // given with -f. 61 // given with -f.
@@ -78,7 +79,7 @@ static void fix_stat(const char *path, struct stat *s)
78 } else { 79 } else {
79 // Use the compiled-in fs_config() function. 80 // Use the compiled-in fs_config() function.
80 81
81 fs_config(path, S_ISDIR(s->st_mode), &s->st_uid, &s->st_gid, &s->st_mode); 82 fs_config(path, S_ISDIR(s->st_mode), &s->st_uid, &s->st_gid, &s->st_mode, &capabilities);
82 } 83 }
83} 84}
84 85