1. 20 May, 2013 2 commits
  2. 15 May, 2013 1 commit
  3. 08 May, 2013 1 commit
    • Ken Sumrall's avatar
      Hack to fix selinux crashes on Manta · 1d857f3e
      Ken Sumrall authored
      Due to previous issues with make_ext4fs not zeroing out inode
      tables and Nexus 10 not erasing partitions before flashing, some
      devices during development were flashed with garbage in the
      inode tables for unused inodes.  The kernel did not care, and
      ignore the unused inodes, but if e2fsck ran for any reason, it
      would find what it thought were lost inodes, and put them in
      lost+found.
      
      When selinux was enabled, it would reload the policy
      on all files in /data, and when it traversed /lost+found, the
      kernel would crash with weird ext4 errors.  We are pretty sure
      this is due to bugs in the xattr code not handling potentially
      bogus inodes, but we have not yet found the actual bug.  In
      order to get the release out the door on time, this hack will
      skip searching in lost+found directories.  This will be
      fixed properly before the next release.
      
      Bug: 8801548
      Change-Id: If4cd78cf587cefa4cd2d41c4424034c5d5878b78
      1d857f3e
  4. 06 May, 2013 2 commits
  5. 26 Apr, 2013 1 commit
  6. 15 Apr, 2013 2 commits
  7. 21 Mar, 2013 2 commits
  8. 20 Mar, 2013 1 commit
    • Stephen Smalley's avatar
      Generalize levelFromUid support. · a879598e
      Stephen Smalley authored
      
      Generalize levelFromUid support to support per-app, per-user,
      or per-combination level assignment.  Adds a new levelFrom=none|app|user|all
      syntax for specifying the desired behavior in seapp_contexts.
      levelFromUid=true|false is still supported but translated to
      levelFrom=app|none.
      
      No change in existing behavior for existing seapp_contexts configurations.
      
      Change-Id: I0e9c18ecf3113fa7079d2101899c92a241ef80a0
      Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
      a879598e
  9. 19 Mar, 2013 1 commit
  10. 24 Jan, 2013 1 commit
  11. 08 Jan, 2013 1 commit
  12. 05 Nov, 2012 1 commit
  13. 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
  14. 02 Oct, 2012 1 commit
  15. 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
  16. 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
  17. 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
  18. 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
  19. 14 Sep, 2012 1 commit
  20. 23 Aug, 2012 3 commits
  21. 06 Aug, 2012 1 commit
  22. 02 Aug, 2012 1 commit
  23. 31 Jul, 2012 2 commits
  24. 30 Jul, 2012 2 commits
  25. 27 Jul, 2012 5 commits
  26. 12 Jul, 2012 1 commit
  27. 11 Jul, 2012 1 commit
  28. 10 Jul, 2012 1 commit