summaryrefslogtreecommitdiffstats
path: root/tools/fs_config
Commit message (Collapse)AuthorAgeFilesLines
* fix device specific fs_config on build serverThierry Strudel2015-07-101-3/+7
| | | | | | | | | | | | | | | | fs_config function from libcutils, in order to properly set the xattr FS used to define device specific uid, gid, permissions and capabilities, now needs TARGET_OUT make variable to be passed explicitly to all tools using it: fs_config fs_get_stats used by mktarball.sh make_ext4fs used by mkuserimg.sh mksquashfs used by mksquashfsimage.sh Bug: 21989305 Bug: 22048934 Change-Id: I6caf9cf870882fce2ead93027767092c29b75ded Signed-off-by: Thierry Strudel <tstrudel@google.com>
* build: fs_config_generate must open file in binary modeMark Salyzyn2015-04-161-1/+1
| | | | | Bug: 19908228 Change-Id: I2361b8af90b3729deb438e6a7a7179de12680b65
* fs_config: Add fs_config_generateMark Salyzyn2015-04-153-0/+233
| | | | | | | | | | | | | | | | | | | fs_config_generate_$(TARGET_DEVICE) is built based off the content of $(TARGET_ANDROID_FILESYSTEM_CONFIG_H). We also add the rules fs_config_dirs and fs_config_file to utilize this command for target contents: fs_config_generate_$(TARGET_DEVICE) -D -o system/etc/fs_config_dir fs_config_generate_$(TARGET_DEVICE) -F -o system/etc/fs_config_file In order to use this feature, one must have the fs_config_dirs and fs_config_files in the $(PRODUCT_PACKAGES) list defined in the device make files in $(TARGET_DEVICE_DIR). And either an android_filesystem_config.h file in that directory, or define a path in TARGET_ANDROID_FILESYSTEM_CONFIG_H to point to one. Bug: 19908228 Change-Id: Iee1543d99169f874e0915ae07962a7750ecb6342
* fs_config: use libcutils and libselinux shared librariesMark Salyzyn2015-04-151-2/+2
| | | | | | | | | | | - move to libcutils.so and libselinux.so as shared now that they are in DISTTOOL. - liblog dependency is part of libcutils, and need not be called out explicitly now. liblog is in DISTTOOL. - libcutils fs_config has the right to add Android logging Bug: 19908228 Change-Id: Iaa60ad624b42d83653840ac3c77bfa03ad8674aa
* fs_config: add loggingMark Salyzyn2015-04-071-1/+1
| | | | | | | libcutils fs_config has the right to add Android logging Bug: 19908228 Change-Id: I6d68107156962a6fec357ab99d23960c6852b026
* fs_config: move fs_config to libcutilsMark Salyzyn2015-04-021-1/+2
| | | | | Bug: 19908228 Change-Id: I4103ac395d0a28fd13173cc703e980aafe6c02e1
* Update OTA to understand SELinux labels and capabilitiesNick Kralevich2013-09-102-5/+91
| | | | | | | | | | | | | | | | | | | | | | | Update the OTA generation script to understand SELinux file labels and file capabilities. Make fs_config aware of SELinux labels and file capabilities, and optionally output those elements whenever we output the UID / GID / file perms. The information is emitted as a key=value pair to allow for future extensibility. Pass the SELinux file label and capabilities to the newly created set_metadata() and set_metadata_recursive() calls. When the OTA script fixes up filesystem permissions, it will also fix up the SELinux labels and file capabilities. If no SELinux label and capabilities are available for the file, use the old set_perm and set_perm_recursive calls. Bug: 8985290 Bug: 10183961 Bug: 10186213 Change-Id: I4fcfb2c234dbfb965cee9e62f060092a4274d22d
* Revert "Update OTA to understand SELinux filesystem labels"Michael Runge2013-07-222-76/+5
| | | | | | | | This reverts commit fbbd79530adc6ddd6bbfb3c5fc60ba5ec0ce5f2d. All incremental auto OTAs broken b/9964074 Change-Id: I500d2ac194804abd20a0e01d9862fd42e8f5d2de
* Update OTA to understand SELinux filesystem labelsNick Kralevich2013-07-182-5/+76
| | | | | | | | | | | | Make fs_config aware of SELinux contexts, and output the context whenever we output the UID / GID / file perms. Pass the selinux context to the set_perm2() and set_perm2_recursive() calls. When the OTA script fixes up filesystem permissions, it will also fix up the SELinux context on the files. Bug: 8985290 Change-Id: I6419b64c06309a93ac6b2f2cf9fc7f8815adeaf3
* build: update fs_config calls for capabilities change.Nick Kralevich2013-02-201-1/+2
| | | | Change-Id: Ic3c94f990c34a56d84f01c151f1b64f419e16419
* host modules don't need LOCAL_MODULE_TAGSJoe Onorato2012-08-161-1/+0
| | | | Change-Id: Ifec8e63eef512b281eb924ef92160e9e1bf97f6d
* Remove the simulator target from all makefiles.Jeff Brown2011-07-111-4/+0
| | | | | | Bug: 5010576 Change-Id: Ie814f4c8d3aa1e7cc7f5735822ab25542f36cf62
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-032-0/+96
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-032-96/+0
|
* auto import from //branches/cupcake/...@126645The Android Open Source Project2009-01-152-0/+96