Skip to content
Snippets Groups Projects
  1. May 15, 2014
  2. May 14, 2014
  3. May 13, 2014
  4. May 12, 2014
  5. May 10, 2014
  6. May 09, 2014
    • Stephen Smalley's avatar
      Restrict installd to only the data file types needed. · 4ebbbcbf
      Stephen Smalley authored
      
      Drop rules on data_file_type attribute and replace with
      rules on specific types, coalescing with existing rules
      where appropriate.  Reorganize the rules and try to
      annotate the reason for the different rules.
      
      Change-Id: I2d07e7c276a9c29677f67db0ebecfc537c084965
      Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
      4ebbbcbf
    • Stephen Smalley's avatar
      Drop relabelto_domain() macro and its associated definitions. · 02dac03a
      Stephen Smalley authored
      
      This was originally to limit the ability to relabel files to
      particular types given the ability of all domains to relabelfrom
      unlabeled files.  Since the latter was removed by
      Ied84f8b4b1a0896c1b9f7d783b7463ce09d4807b, this no longer serves
      any purpose.
      
      Change-Id: Ic41e94437188183f15ed8b3732c6cd5918da3397
      Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
      02dac03a
    • Nick Kralevich's avatar
      Allow installd to create the lib symlink for system_app_data_file · 004bd4e0
      Nick Kralevich authored
      91a4f8d4 created system_app_data_file,
      and assigned all system_apps to use this file type. For testing purposes,
      our automated testing infrastructure sideloads shared system UID apks.
      Installd does not have permission to create the lib symlink, so the
      installation fails.
      
      Allow installd to create this symlink.
      
        repro:
        adb install AppLaunch.apk
        276 KB/s (8414 bytes in 0.029s)
               pkg: /data/local/tmp/AppLaunch.apk
        Failure [INSTALL_FAILED_INTERNAL_ERROR]
      
        logcat:
        05-08 23:16:36.336   605   637 I PackageManager: Copying native libraries to /data/app-lib/vmdl609237490
        05-08 23:16:36.338   605   637 W asset   : Installing empty resources in to table 0x5e89a368
        05-08 23:16:36.359   193   193 W installd: type=1400 audit(0.0:29): avc:  denied  { create } for  name="lib" scontext=u:r:installd:s0 tcontext=u:object_r:system_app_data_file:s0 tclass=lnk_file
        05-08 23:16:36.363   193   193 E installd: couldn't symlink directory '/data/data/com.android.tests.applaunch/lib' -> '/data/app-lib/com.android.tests.applaunch-1': Permission denied
        05-08 23:16:36.364   605   637 W PackageManager: Failed linking native library dir (user=0)
        05-08 23:16:36.364   605   637 W PackageManager: Package couldn't be installed in /data/app/com.android.tests.applaunch-1.apk
      
      Bug: 14659632
      Change-Id: Iac4890302cd070aa3f71553af217f343ed7b8bc3
      004bd4e0
    • Nick Kralevich's avatar
      Protect keystore's files. · cd905ec0
      Nick Kralevich authored
      Only keystore itself should be reading / writing it's files.
      Remove keystore file access from other SELinux domains, including
      unconfined. Add neverallow rules to protect against regressions.
      Allow init limited access to recurse into keystore's directory.
      
      Change-Id: I0bb5de7804f4314997c16fac18507933014bcadf
      cd905ec0
Loading