1. 23 Oct, 2012 1 commit
    • Kenny Root's avatar
      Do not try to restorecon if selinux is disabled · 20f62f35
      Kenny Root authored
      debuggerd tries to restorecon on the tombstones directory which fails
      when SELinux is not enabled in the kernel. That would return an error
      condition to debuggerd which would then abort its attempt to dump the
      stacks of the failing program.
      
      Fix it here in case there are other places that might call this in the
      future. Currently the only other caller is android_os_SELinux.cpp JNI
      code.
      
      Change-Id: Id73796a70174333b61fd04ee6b1d99fccbea8116
      20f62f35
  2. 02 Oct, 2012 1 commit
  3. 24 Sep, 2012 1 commit
    • Stephen Smalley's avatar
      Switch app_* and isolated to _app and _isolated in seapp_contexts. · 525a2244
      Stephen Smalley authored
      
      The app_* syntax was a legacy of the original approach of looking up
      the username returned by getpwuid() and the original username encoding
      scheme by bionic.  With the recent changes to move away from this approach,
      there is no reason to retain that syntax.  Instead, just use _app to match
      app UIDs and _isolated to match isolated service UIDs.  The underscore
      prefix is to signify that these are not real usernames and to avoid
      conflicts with any system usernames.
      
      Requires a corresponding change to sepolicy.
      
      Change-Id: I21f9f88415b653c1bf6332fc100d91d969c9da64
      Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
      525a2244
  4. 21 Sep, 2012 1 commit
    • Stephen Smalley's avatar
      Rework category mapping and perform some code cleanup. · d23b9e01
      Stephen Smalley authored
      
      Map the app IDs to a category pair rather than a single category.
      With this scheme,  we can represent up to 2^16 app IDs, which exceeds
      the maximum of 10000 imposed by Android.  This also only uses category
      bits 0-511, so 512-1023 remain free for use for other purposes (or we
      could shrink the number of categories defined in the policy).
      
      Also perform other minor code cleanups previously suggested, e.g.
      fix const declaration, use an enum rather than #define, correct %lu
      to %u for format string, etc.
      
      Change-Id: I5bb727bfb4297e3e13ba1ef078e41db3ea7d1b8f
      Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
      d23b9e01
  5. 19 Sep, 2012 1 commit
    • Stephen Smalley's avatar
      Clean up libselinux logic for looking up seapp contexts entries. · 895b446e
      Stephen Smalley authored
      
      Re-factor the logic shared by selinux_android_setfilecon2 and
      selinux_android_setcontext into a common helper and replace the
      use of getpwuid and username string parsing with direct use of
      android_filesystem_config.h definitions.  Also map isolated UIDs
      to a separate isolated key so that we can label them differently
      in the future if desired.
      
      Change-Id: If2f9def21222588b440a6cedcceec0434f6797fd
      Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
      895b446e
  6. 18 Sep, 2012 1 commit
    • Stephen Smalley's avatar
      Drop the use of a policy version suffix on the sepolicy file. · 4a655eca
      Stephen Smalley authored
      
      The policy version suffix support was carried over from conventional
      Linux distributions, where we needed to support simultaneous installation
      of multiple kernels and policies.  This isn't required for Android, so
      get rid of it and thereby simplify the policy pathname.
      
      Requires a corresponding change to sepolicy.
      
      Change-Id: I061607f5fe6457e469b4834da6fc659d7ddca6f9
      Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
      4a655eca
  7. 14 Sep, 2012 1 commit
  8. 23 Aug, 2012 3 commits
  9. 06 Aug, 2012 1 commit
  10. 02 Aug, 2012 1 commit
  11. 31 Jul, 2012 2 commits
  12. 30 Jul, 2012 2 commits
  13. 27 Jul, 2012 5 commits
  14. 12 Jul, 2012 1 commit
  15. 11 Jul, 2012 1 commit
  16. 10 Jul, 2012 1 commit
  17. 19 Jun, 2012 1 commit
  18. 11 Jun, 2012 1 commit
  19. 10 Apr, 2012 1 commit
  20. 06 Apr, 2012 1 commit
  21. 04 Apr, 2012 1 commit
  22. 20 Mar, 2012 1 commit
  23. 19 Mar, 2012 2 commits
  24. 02 Feb, 2012 1 commit
  25. 24 Jan, 2012 2 commits
  26. 18 Jan, 2012 1 commit
  27. 04 Jan, 2012 1 commit