- Feb 14, 2017
-
-
Steven Moreland authored
am: 94651e19 Change-Id: I4e535ce2cb740c37bd96682d23f812dc260fd00a
-
Steven Moreland authored
am: e5d7a8ce Change-Id: I3c4398a0845d98c9824bde7f6a96bce2ac4ca665
-
Steven Moreland authored
am: 6832909b Change-Id: I0acd257b35f55e9f125ea805b2152aa1296ffa88
-
Steven Moreland authored
am: ee2faadc Change-Id: Ic12fe80e16972a172092291058c12dd53c95ee14
-
Treehugger Robot authored
-
Steven Moreland authored
am: 4e270210 -s ours Change-Id: I4fbb7538db0a094a8d9fa3feaa74c13f3b1bd453
-
Steven Moreland authored
am: 12649249 Change-Id: Idbccec64163fe70c146b653c0c71c6b14b8ba797
-
Steven Moreland authored
am: 8eb8beba Change-Id: Ie468fabd56f01c1340c49632760ce1e7ba65420b
-
Steven Moreland authored
am: d734f151 Change-Id: I600ecaf5fac9401db036a733a7afa186f6de7eb2
-
Steven Moreland authored
-
TreeHugger Robot authored
-
Paul Lawrence authored
am: 75877b24 Change-Id: Ic8688a5f7835ec689d47b1aad7d3e95424e28625
-
Pawin Vongmasa authored
am: d85cd20d Change-Id: I3dbea2d195d5dd8fa27e6c702c5772b2d5b0825b
-
Paul Lawrence authored
am: 8f022478 Change-Id: Id2bf23854f29d453e8e280a50e6b2fee308e6db2
-
Pawin Vongmasa authored
am: d1eb4564 Change-Id: Ic7a0b8ad7469778a2cf5ef2673de493fe34eabd9
-
Paul Lawrence authored
am: 7bb3d92a Change-Id: I77e60157551af8e13bb4fb45da86aae86347f084
-
Pawin Vongmasa authored
am: 6f443b87 Change-Id: I46dc0e9a5350dca7861fc81f0cf00d698c57ec0b
-
Paul Lawrence authored
am: ff5784f3 Change-Id: Ieb6e5cc4711add33fbd7b276bbbd362f249fb51e
-
Pawin Vongmasa authored
am: 5b4f15e1 Change-Id: Ic7c0de32ac3970c000062bc35bb0c50254510b3a
-
Treehugger Robot authored
-
Pawin Vongmasa authored
-
- Feb 13, 2017
-
-
Steven Moreland authored
Update shell.te to reflect the fact that hwbinder_user permission is for lshal, not dumpsys. Bug: 33382892 Test: pass Change-Id: I1d298261cea82177436a662afbaa767f00117b16
-
Steven Moreland authored
Bug: 34135607 Test: hals work Merged-In: I6a1f87438bb5b540fce900e9ec5df07d3f4f6bd4 Change-Id: I6a1f87438bb5b540fce900e9ec5df07d3f4f6bd4
-
Steven Moreland authored
Bug: 34135607 Test: hals work Change-Id: I6a1f87438bb5b540fce900e9ec5df07d3f4f6bd4
-
Treehugger Robot authored
-
Nick Kralevich authored
am: e15d68a4 Change-Id: I11671a0c185b22a68b7e3be4da955598dda8a57b
-
Nick Kralevich authored
am: f44c0dd7 Change-Id: Ic08c60058c959cd247849c43e76b5ea9971e3f5a
-
Nick Kralevich authored
am: 530b8f52 Change-Id: Ide555826450bfc6872af89f3f5c3be27018fd7d9
-
Nick Kralevich authored
am: 4cae28d4 Change-Id: Ie22e0c2a1c84188666a38dba21129e7547d83fbc
-
Chia-I Wu authored
Bug: 35210697 Test: manual Change-Id: I0e1e8923851f668d5fe6c210f411a8e4ff0470c7
-
Paul Lawrence authored
Don't audit directory writes to sysfs since they cannot succees and therefore cannot be a security issue Bug: 35303861 Test: Make sure denial is no longer shown Change-Id: I1f31d35aa01e28e3eb7371b1a75fc4090ea40464
-
- Feb 12, 2017
-
-
Nick Kralevich authored
On boot, Android runs restorecon on a number of virtual directories, such as /sys and /sys/kernel/debug, to ensure that the SELinux labels are correct. To avoid causing excessive boot time delays, the restorecon code aggressively prunes directories, to avoid recursing down directory trees which will never have a matching SELinux label. See: * https://android-review.googlesource.com/93401 * https://android-review.googlesource.com/109103 The key to this optimization is avoiding unnecessarily broad regular expressions in file_contexts. If an overly broad regex exists, the tree pruning code is ineffective, and the restorecon ends up visiting lots of unnecessary directories. The directory /sys/kernel/debug/tracing contains approximately 4500 files normally, and on debuggable builds, this number can jump to over 9000 files when the processing from wifi-events.rc occurs. For comparison, the entire /sys/kernel/debug tree (excluding /sys/kernel/debug/tracing) only contains approximately 8000 files. The regular expression "/sys/kernel(/debug)?/tracing/(.*)?" ends up matching a significant number of files, which impacts boot performance. Instead of using an overly broad regex, refine the regex so only the files needed have an entry in file_contexts. This list of files is essentially a duplicate of the entries in frameworks/native/cmds/atrace/atrace.rc . This change reduces the restorecon_recursive call for /sys/kernel/debug from approximately 260ms to 40ms, a boot time reduction of approximately 220ms. Bug: 35248779 Test: device boots, no SELinux denials, faster boot. Change-Id: I70f8af102762ec0180546b05fcf014c097135f3e
-
Nick Kralevich authored
am: bb19a753 Change-Id: I4814247299fc156954116c8116e2d8ad3d2f5577
-
Nick Kralevich authored
am: 05984847 Change-Id: Ib897f3fcc8471c1f40b85650ee6c997f2da0d9de
-
Nick Kralevich authored
am: 137923a1 Change-Id: I5748e38ffdbefa08b66132080c934c44c5d02327
-
Nick Kralevich authored
am: 6ebcfe47 Change-Id: I6999a1aaf79a559e0477166523ee71cfbfeb3a1b
-