Skip to content
Snippets Groups Projects
  • Nick Kralevich's avatar
    9bef2502
    system_server: support hard linking for split APKs · 9bef2502
    Nick Kralevich authored
    Commit 85ce2c70 removed hard link
    support from create_file_perms, but system_server requires hard
    link support for split APKs. Allow it.
    
    Addresses the following denial:
    
      audit(0.0:152): avc: denied { link } for name="base.apk" dev="dm-0" ino=816009 scontext=u:r:system_server:s0 tcontext=u:object_r:apk_data_file:s0 tclass=file permissive=0
    
    Steps to reproduce:
    1) Find the directory "hellogoogle3.splitapk"
    2) adb install-multiple -r hellogoogle3_incremental.apk
    3) adb install-multiple -r -p com.google.android.samples.hellogoogle3 native.apk
    
    Expected:
      2nd APK installs successfully.
    
    Actual:
      2nd APK fails to install.
    
    Change-Id: Ib69fc70dd1c7cd158590db3fd117d6b05acf1cf7
    9bef2502
    History
    system_server: support hard linking for split APKs
    Nick Kralevich authored
    Commit 85ce2c70 removed hard link
    support from create_file_perms, but system_server requires hard
    link support for split APKs. Allow it.
    
    Addresses the following denial:
    
      audit(0.0:152): avc: denied { link } for name="base.apk" dev="dm-0" ino=816009 scontext=u:r:system_server:s0 tcontext=u:object_r:apk_data_file:s0 tclass=file permissive=0
    
    Steps to reproduce:
    1) Find the directory "hellogoogle3.splitapk"
    2) adb install-multiple -r hellogoogle3_incremental.apk
    3) adb install-multiple -r -p com.google.android.samples.hellogoogle3 native.apk
    
    Expected:
      2nd APK installs successfully.
    
    Actual:
      2nd APK fails to install.
    
    Change-Id: Ib69fc70dd1c7cd158590db3fd117d6b05acf1cf7