platform_build/target/product
Elliott Hughes 2d7c86dfea Revert "Revert "Merge changes from topic 'fsconfig-2'""
This reverts commit fad4b4b715.

Incorporating the following fixes:

1.

fsconfig: fix fs_config_* build for discovered headers

When android_file system_config.h is picked up from the device
directory, neither TARGET_FS_CONFIG_GEN or TARGET_ANDROID_FILESYSTEM_CONFIG_H
are specified. Thus, the build is not generating the required fs_config_files
and fs_config_dirs.

Test: Ensure that make fs_config_files works, and produces the same output as before
      Build the system image and mount it as a loop back and dump the file system
      capabilities with getcap. Verify that output to the supplied
      android_file system_config.h

From the loopback of the system.img mount, from CWD system/bin:
$ getcap *
cnss-daemon = cap_net_bind_service+ep
hostapd = cap_net_admin,cap_net_raw+ep
imsdatadaemon = cap_net_bind_service+ep
ims_rtp_daemon = cap_net_bind_service+ep
logd = cap_setgid,cap_audit_control,cap_syslog+ep
mm-qcamera-daemon = cap_sys_nice+ep
pm-service = cap_net_bind_service+ep
run-as = cap_setgid,cap_setuid+ep
surfaceflinger = cap_sys_nice+ep
webview_zygote32 = cap_setgid,cap_setuid,cap_setpcap+ep
webview_zygote64 = cap_setgid,cap_setuid,cap_setpcap+ep

Compared to the android_filesystem_config.h:
    { 00700, AID_CAMERA,    AID_SHELL,     (1ULL << CAP_SYS_NICE), "system/bin/mm-qcamera-daemon" },
    { 00755, AID_SYSTEM,    AID_SYSTEM,    (1ULL << CAP_NET_BIND_SERVICE), "system/bin/pm-service" },
    { 00755, AID_SYSTEM,    AID_SYSTEM,    (1ULL << CAP_NET_BIND_SERVICE), "system/bin/imsdatadaemon" },
    { 00755, AID_SYSTEM,    AID_RADIO,     (1ULL << CAP_NET_BIND_SERVICE), "system/bin/ims_rtp_daemon" },
    { 00755, AID_SYSTEM,    AID_SYSTEM,    (1ULL << CAP_NET_BIND_SERVICE), "system/bin/cnss-daemon"},

2.

fsconfig: fix error message for duplicate AID

Fixes:
    raise ValueError('Duplicate aid value "%u" for %s' % value,
TypeError: %u format: a number is required, not str

and

    raise ValueError('Duplicate aid value "%s" for %s' % value,
TypeError: not enough arguments for format string

3.

fsconfig: add test for duplicate ranges

Add a test for duplicate range detection.

4.

fsconfig: skip AID_APP, AID_USER and all ranges

Do not output AID_APP, AID_USER and ranges. A range
is defined as ending with AID_ and ending in _START or
_END.

5.

fsconfig: test for skip AID_APP, AID_USER and all ranges

Test against AIDs that caused the bionic tests to fail.

Change-Id: I95569a9ccc83bd3231f8a6f395532cc2de316bd2
Signed-off-by: William Roberts <william.c.roberts@intel.com>
2016-12-18 10:55:35 -08:00
..
security README: Update docs 2015-05-15 14:37:33 -07:00
AndroidProducts.mk Support x86+arm multilib build. 2016-03-25 13:29:53 -07:00
aosp_arm.mk Remove unnecessary inheritance layer between aliases. 2015-11-16 17:21:42 -08:00
aosp_arm64.mk Remove references to deleted dhcpcd 2016-03-18 10:18:50 +09:00
aosp_base.mk
aosp_base_telephony.mk Include new AOSP messaging app in base AOSP telephony builds. 2015-08-12 15:44:04 -07:00
aosp_mips.mk Remove unnecessary inheritance layer between aliases. 2015-11-16 17:21:42 -08:00
aosp_mips64.mk Remove references to deleted dhcpcd 2016-03-18 10:18:50 +09:00
aosp_x86.mk Remove unnecessary inheritance layer between aliases. 2015-11-16 17:21:42 -08:00
aosp_x86_64.mk Remove references to deleted dhcpcd 2016-03-18 10:18:50 +09:00
aosp_x86_arm.mk Support x86+arm multilib build. 2016-03-25 13:29:53 -07:00
base.mk Revert "Build: Add sanitized app_process" 2016-11-30 16:40:13 -08:00
core.mk Add default NetworkRecommendation to core.mk 2016-12-16 10:48:47 -08:00
core_64_bit.mk Make default 64-bit primary, 32-bit secondary 2014-06-20 14:24:32 +01:00
core_base.mk core_base.mk: switch to new H264 and MPEG2 software codecs 2015-04-16 19:02:47 -07:00
core_minimal.mk Merge "Do not *directly* package libbcc.so" 2016-12-01 17:58:47 +00:00
core_tiny.mk Replace core-junit with legacy-test 2016-11-30 13:50:56 +00:00
embedded.mk Revert "Revert "Merge changes from topic 'fsconfig-2'"" 2016-12-18 10:55:35 -08:00
emulator.mk Indicate that all emulator images support USB 2016-05-04 22:40:56 +00:00
full.mk
full_base.mk Really include drawables for all densities. 2015-09-29 09:57:41 -07:00
full_base_telephony.mk Remove VoiceDialer from PRODUCT_PACKAGE list. 2015-03-19 18:10:15 +00:00
full_mips.mk
full_x86.mk
generic.mk
generic_armv5.mk
generic_mips.mk
generic_no_telephony.mk The easter egg is now its own APK. 2016-06-26 18:07:59 +00:00
generic_x86.mk
languages_full.mk Revert "Add Serbian in Latin script to the full locale list" [DO NOT MERGE] 2016-06-23 20:03:44 +00:00
languages_small.mk
locales_full.mk
product_launched_with_l.mk Added make files for variable PRODUCT_SHIPPING_API_LEVEL. 2016-06-07 15:08:27 -07:00
product_launched_with_l_mr1.mk Added make files for variable PRODUCT_SHIPPING_API_LEVEL. 2016-06-07 15:08:27 -07:00
product_launched_with_m.mk Added make files for variable PRODUCT_SHIPPING_API_LEVEL. 2016-06-07 15:08:27 -07:00
product_launched_with_n.mk Added make files for variable PRODUCT_SHIPPING_API_LEVEL. 2016-06-07 15:08:27 -07:00
runtime_libart.mk Replace core-junit with legacy-test 2016-11-30 13:50:56 +00:00
sdk.mk Normalize SDK product name to sdk_<device_type>_<arch_name> 2014-07-18 15:40:13 -07:00
sdk_arm64.mk arm64: Fix the sdk_arm64 build products 2014-08-22 11:15:07 +02:00
sdk_base.mk The easter egg is now its own APK. 2016-06-26 18:07:59 +00:00
sdk_mips.mk Normalize SDK product name to sdk_<device_type>_<arch_name> 2014-07-18 15:40:13 -07:00
sdk_phone_arm64.mk [Emulator] Add comment about including AOSP messaging on AOSP images. 2016-02-26 19:26:05 +00:00
sdk_phone_armv7.mk [Emulator] Add comment about including AOSP messaging on AOSP images. 2016-02-26 19:26:05 +00:00
sdk_phone_mips.mk [Emulator] Add comment about including AOSP messaging on AOSP images. 2016-02-26 19:26:05 +00:00
sdk_phone_mips64.mk [Emulator] Add comment about including AOSP messaging on AOSP images. 2016-02-26 19:26:05 +00:00
sdk_phone_x86.mk [Emulator] Add comment about including AOSP messaging on AOSP images. 2016-02-26 19:26:05 +00:00
sdk_phone_x86_64.mk [Emulator] Add comment about including AOSP messaging on AOSP images. 2016-02-26 19:26:05 +00:00
sdk_x86.mk Normalize SDK product name to sdk_<device_type>_<arch_name> 2014-07-18 15:40:13 -07:00
sdk_x86_64.mk Fix 64 bit emulator booting (again). 2014-07-30 09:35:41 -07:00
telephony.mk Add EmergencyInfo to devices with telephony 2016-01-29 11:26:54 -08:00
vboot.mk vboot_signer: Add kernel subkey required for signing kernel keyblock 2015-08-07 12:01:20 -07:00
verity.mk Error correction: Append codes to verified partitions 2015-10-14 18:06:20 +01:00