diff options
author | Nick Kralevich <nnk@google.com> | 2013-02-07 14:22:12 -0800 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2013-02-20 12:51:28 -0800 |
commit | e9e74f3c881bd73bd86be4db8b12200a61f143e1 (patch) | |
tree | 8fc5caf9ac0548fa1665dea59e6faf0a3f8a7c28 /cpio | |
parent | 523a20901b2afce7ad02c0011d70ed57f8bbb997 (diff) | |
download | system_core-e9e74f3c881bd73bd86be4db8b12200a61f143e1.tar.gz system_core-e9e74f3c881bd73bd86be4db8b12200a61f143e1.tar.bz2 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.c | 3 |
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; static void fix_stat(const char *path, struct stat *s) { + uint64_t capabilities; if (canned_config) { // Use the list of file uid/gid/modes loaded from the file // given with -f. @@ -78,7 +79,7 @@ static void fix_stat(const char *path, struct stat *s) } else { // Use the compiled-in fs_config() function. - fs_config(path, S_ISDIR(s->st_mode), &s->st_uid, &s->st_gid, &s->st_mode); + fs_config(path, S_ISDIR(s->st_mode), &s->st_uid, &s->st_gid, &s->st_mode, &capabilities); } } |