Skip to content
Snippets Groups Projects
  1. Apr 12, 2017
    • Dan Cashman's avatar
      Change mapping file name to reflect its platform version. · 4f9a648e
      Dan Cashman authored
      As the platform progresses in the split SELinux world, the platform
      will need to maintain mapping files back to previous platform versions
      to maintain backwards compatibility with vendor images which have SELinux
      policy written based on the older versions.  This requires shipping multiple
      mapping files with the system image so that the right one can be selected.
      Change the name and location of the mapping file to reflect this.  Also add
      a file to the vendor partition indicating which version is being targeted that
      the platform can use to determine which mapping file to choose.
      
      Bug: 36783775
      Test: Force compilation of sepolicy on-device with mapping file changed
      to new location and name, using the value reported on /vendor.
      
      Change-Id: I93ab3e52c2c80c493719dc3825bc731867ea76d4
      4f9a648e
  2. Apr 06, 2017
    • Dan Cashman's avatar
      Move mapping_sepolicy.cil to /system partition. · 04ef57bf
      Dan Cashman authored
      This is a necessary first step to finalizing the SELinux policy build
      process.  The mapping_sepolicy.cil file is required to provide backward
      compatibility with the indicated vendor-targeted version.
      
      This still needs to be extended to provide N mapping files and corresponding
      SHA256 outputs, one for each of the N previous platform versions with which
      we're backward-compatible.
      
      (cherry-pick of commit: 0e9c47c0)
      
      Bug: 36783775
      Test: boot device with matching sha256 and non-matching and verify that
      device boots and uses either precompiled or compiled policy as needed. Also
      verify that mapping_sepolicy.cil has moved.
      
      Change-Id: I5692fb87c7ec0f3ae9ca611f76847ccff9182375
      04ef57bf
    • Dan Cashman's avatar
      Move mapping_sepolicy.cil to /system partition. · 0e9c47c0
      Dan Cashman authored
      This is a necessary first step to finalizing the SELinux policy build
      process.  The mapping_sepolicy.cil file is required to provide backward
      compatibility with the indicated vendor-targeted version.
      
      This still needs to be extended to provide N mapping files and corresponding
      SHA256 outputs, one for each of the N previous platform versions with which
      we're backward-compatible.
      
      Bug: 36783775
      Test: boot device with matching sha256 and non-matching and verify that
      device boots and uses either precompiled or compiled policy as needed. Also
      verify that mapping_sepolicy.cil has moved.
      
      Change-Id: I5692fb87c7ec0f3ae9ca611f76847ccff9182375
      0e9c47c0
  3. Mar 10, 2017
    • Alex Klyubin's avatar
      Revert "Correct location of property_contexts for TREBLE devices" · 935ddb20
      Alex Klyubin authored
      This reverts commit 4cb628a3.
      
      Reason for revert: recovery image on marlin & sailfish no longer
      contained *property_contexts and thus recovery failed to boot.
      
      Test: Clean build, flash, sailfish and bullhead boot up just fine,
            and boot into recovery just fine.
      Bug: 36002573
      Bug: 36108354
      Change-Id: I2dffd80764f1a464327747d35a58691b24cff7a7
      935ddb20
  4. Jan 29, 2017
  5. Jan 26, 2017
    • Sandeep Patil's avatar
      Fix cleanspec for property_contexts · 4ca1f427
      Sandeep Patil authored
      
      The CLs that split the property_contexts at
      topic:prop_ctx_split status:merged broke incremental build,
      which was later fixed in I22ecd1d3698404df352263fa99b56cb65247a23b.
      
      The prop_ctx CLs were later reverted due to updater breakage as in
      b/34370523. So, this change adds the property_contexts clean steps
      to fix the incremental builds
      
      Change-Id: Ic32b144dbfada3a6c34f9502099220e7e3c63682
      Signed-off-by: default avatarSandeep Patil <sspatil@google.com>
      4ca1f427
  6. Jan 18, 2017
    • Colin Cross's avatar
      Fix incremental builds · 596fa95f
      Colin Cross authored
      Some recent CLs changed the list of files that are installed in the
      root directory.  Incremental builds have no way to uninstall files
      that were previously installed, which results in old stray files lying
      around.  If the root directory is contained in system.img, this causes
      an error while building system.img:
      error: build_directory_structure: cannot lookup security context for /service_contexts
      
      Update CleanSpec.mk to remove files obsoleted by:
      Ide67d37d85273c60b9e387e72fbeb87be6da306a
      I7881af8922834dc69b37dae3b06d921e05206564
      Ide67d37d85273c60b9e387e72fbeb87be6da306a
      
      This is not seen on the incremental build servers because they run
      make installclean between builds.
      
      Test: incremental build passes
      Change-Id: I22ecd1d3698404df352263fa99b56cb65247a23b
      596fa95f
  7. Aug 12, 2015
    • Richard Haines's avatar
      Update Android.mk to support file_contexts.bin · c2d01914
      Richard Haines authored
      
      This change supports external/libselinux changes to implement
      PCRE formatted binary file_contexts and general_file_contexts.bin
      files.
      
      The $(intermediates) directory will contain the original text file
      (that is no longer used on the device) with a .tmp extension as well
      as the .bin file to aid analysis.
      
      A CleanSpec.mk file is added to remove the old file_contexts file.
      
      Change-Id: I75a781100082c23536f70ce3603f7de42408b5ba
      Signed-off-by: default avatarRichard Haines <richard_c_haines@btinternet.com>
      c2d01914
Loading