Commit graph

21058 commits

Author SHA1 Message Date
Harpreet "Eli" Sangha
d08b5ac690 Merge "atrace: allow tracing of vibrator hal" am: 9cc85328ea
am: b67b08b4b3

Change-Id: Ic0afe2c434fac599943a855539fa4e471f3d4632
2019-06-24 20:04:24 -07:00
Harpreet "Eli" Sangha
b67b08b4b3 Merge "atrace: allow tracing of vibrator hal"
am: 9cc85328ea

Change-Id: I5cc80487542510af6ff703fa74b9179b3de5f58d
2019-06-24 19:58:29 -07:00
Treehugger Robot
9cc85328ea Merge "atrace: allow tracing of vibrator hal" 2019-06-25 02:23:25 +00:00
Tom Cherry
5ac270c9a1 Merge "Use a property instead of file to communicate cold boot done" am: 946dd43afb
am: 8a0e969b48

Change-Id: I8eb06630c6b570946636ace39f635f464d0822e7
2019-06-24 12:58:54 -07:00
Tom Cherry
8a0e969b48 Merge "Use a property instead of file to communicate cold boot done"
am: 946dd43afb

Change-Id: Iff8ff77d0158dd0ccc497c30f7ba65d12c25ff46
2019-06-24 12:53:51 -07:00
Tom Cherry
946dd43afb Merge "Use a property instead of file to communicate cold boot done" 2019-06-24 19:39:03 +00:00
Dan Willemsen
fd65f66788 Merge "Use prebuilt m4 instead of system m4" am: 76979371f1
am: 829311e897

Change-Id: I37c0bedda8a606ea7687a2bb3d8a286a7794cb38
2019-06-20 16:17:57 -07:00
Benjamin Schwartz
bac918aca7 Merge "Add power stats HAL to ANR list" am: 828722b4af
am: b34295ea66

Change-Id: Ifd2224115b1acdc25403ea782815d8d88af93d88
2019-06-20 16:17:43 -07:00
Kevin Chyn
a62a1ea02d [automerger skipped] Merge "Add rules to dump hal traces" am: 0bdb4f269f
am: 10cf2a8f94 -s ours
am skip reason: change_id If037483f305e161a158e30f6322d5e25b7770952 with SHA1 6d976f4d5d is in history

Change-Id: I95435e8065926ea0a95ec52f1b31a47dc4a945a8
2019-06-20 16:17:26 -07:00
Oliver Nguyen
0012d6574c Merge "In native coverage builds, allow all domains to access /data/misc/trace" into qt-dev
am: 72a75ffe19

Change-Id: I93de590b94ce57c8ad87361ddb3b6188552854c7
2019-06-20 15:42:32 -07:00
Dan Willemsen
829311e897 Merge "Use prebuilt m4 instead of system m4"
am: 76979371f1

Change-Id: I2e7579fbf49a8bfba17c8343ae2270fcc6857a40
2019-06-20 15:38:26 -07:00
Benjamin Schwartz
b34295ea66 Merge "Add power stats HAL to ANR list"
am: 828722b4af

Change-Id: I95d34a80c035ca6f3773b85df5966e3913e73999
2019-06-20 15:38:10 -07:00
Kevin Chyn
10cf2a8f94 Merge "Add rules to dump hal traces"
am: 0bdb4f269f

Change-Id: Id3c4b805335af896d8235d08f0311735ed9221da
2019-06-20 15:37:56 -07:00
Dan Willemsen
76979371f1 Merge "Use prebuilt m4 instead of system m4" 2019-06-20 20:50:12 +00:00
Oliver Nguyen
72a75ffe19 Merge "In native coverage builds, allow all domains to access /data/misc/trace" into qt-dev 2019-06-20 19:07:41 +00:00
Treehugger Robot
828722b4af Merge "Add power stats HAL to ANR list" 2019-06-20 17:26:04 +00:00
Tom Cherry
2a67e947c6 Use a property instead of file to communicate cold boot done
Ueventd can't set properties currently, but this is an artificial
limitation, since ueventd communicates to init that it has finished
cold boot via a file, and init polls this file instead of returning to
the epoll loop, where properties are handled.

A related change replaces that file with a property and thus frees
ueventd to be able to set properties.  This change creates the
cold_boot_done property type for this property and gives only ueventd
permissions to set it.

Bug: 62301678
Test: boot, check that properties are set
Change-Id: I40843b423b192ea841db6a82f648e5bab9738e0e
2019-06-20 08:37:46 -07:00
Kevin Chyn
0bdb4f269f Merge "Add rules to dump hal traces" 2019-06-20 07:14:51 +00:00
Kevin Chyn
15ff564438 Add rules to dump hal traces
am: 6d976f4d5d

Change-Id: Ia0e7b39d215b9306b724135f7d888593f3c76aae
2019-06-19 19:06:04 -07:00
Matthias Kramm
1710bbd6fe Merge "Revert "Allow hal_face to write to /data/vendor/camera_calibration/*."" am: f4362c08c7
am: 199db0ceb1

Change-Id: Icce34a06c681b8d3717061c31d142622acbfd979
2019-06-19 18:36:04 -07:00
Matthias Kramm
199db0ceb1 Merge "Revert "Allow hal_face to write to /data/vendor/camera_calibration/*.""
am: f4362c08c7

Change-Id: I0a075840bd6a1c9987ea7ba1c0caa5e58113c5d7
2019-06-19 17:54:53 -07:00
Kevin Chyn
a18c5bdd70 Add rules to dump hal traces
Test: manual
Bug: 126802513

Change-Id: If037483f305e161a158e30f6322d5e25b7770952
Merged-In: If037483f305e161a158e30f6322d5e25b7770952
2019-06-20 00:31:03 +00:00
Treehugger Robot
f4362c08c7 Merge "Revert "Allow hal_face to write to /data/vendor/camera_calibration/*."" 2019-06-19 23:44:27 +00:00
Pirama Arumuga Nainar
b65824642b In native coverage builds, allow all domains to access /data/misc/trace
Bug: http://b/135139675

Coverage files are written to /data/misc/trace (governed by the
method_trace_data_file selinux type).  Allow all domains to access
(create directories, access files) this directory when native coverage
is enabled (by setting NATIVE_COVERAGE to true) in an userdebug or eng
build.

Also relax neverallow constraints to allow access to
method_trace_data_file for native coverage builds.

Test: Build 32-bit cuttlefish with coverage:
          m NATIVE_COVERAGE=true COVERAGE_PATHS="*"
      and verify that there are no selinux denials in kernel log and
      logcat.

Change-Id: I3fe7c77612854b9de7de7a0ddd5cbf44a2f5c21e
(cherry picked from commit ce9c0c5a5f)
2019-06-19 16:27:17 -07:00
Benjamin Schwartz
405549afd6 Add power stats HAL to ANR list
Bug: 135111122
Test: Ran "adb shell am hang" and verified that power.stats HAL
information is in /data/anr/<anr_file>
Change-Id: I60a6191626a20c737124033e8ad453fa91425e39
(cherry picked from commit 8273f1915f)
2019-06-19 14:35:30 -07:00
Matthias Kramm
ebcc08249b Revert "Allow hal_face to write to /data/vendor/camera_calibration/*."
This reverts commit 3a44b17897.

Reason for revert: Moved to downstream repo.

Change-Id: I7d3ad43335f71ed03e7a93bc5c96a8933785afd8
2019-06-19 20:15:50 +00:00
Kevin Chyn
6d976f4d5d Add rules to dump hal traces
Test: manual
Bug: 126802513

Change-Id: If037483f305e161a158e30f6322d5e25b7770952
2019-06-19 19:55:14 +00:00
Dan Willemsen
3c3e59b2a2 Use prebuilt m4 instead of system m4
Bug: 117561006
Test: treehugger
Change-Id: Id794aed10fdffef10490561d2cfeb2a92801b331
2019-06-19 10:59:57 -07:00
Tao Bao
66f1ed1c83 [automerger skipped] Add persist.sys.theme. am: a999e39423
am: b1c294cb83 -s ours
am skip reason: change_id Ibb4e392d5059b76059f36f7d11ba82cd65cbe970 with SHA1 75182a1ea6 is in history

Change-Id: I365e369b6526a5a3d5df851ba756b96d51c545cc
2019-06-19 09:17:59 -07:00
Tao Bao
b1c294cb83 Add persist.sys.theme.
am: a999e39423

Change-Id: I4c8882343c7b8c10d57a7801231bfdbe6087b683
2019-06-19 09:09:55 -07:00
Tao Bao
1520895967 Merge "Add persist.sys.theme." into qt-dev
am: 890dba4999

Change-Id: Ia747bf55b5275a8b05a3dbb971c82747b4292807
2019-06-18 20:25:32 -07:00
Tao Bao
a999e39423 Add persist.sys.theme.
This property will be set by system_server (to indicate the currently
selected theme for device), and can be accessed by vendor init.rc.

avc:  denied  { read } for property=persist.sys.theme pid=0 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:theme_prop:s0 tclass=file

Bug: 113028175
Test: Set a vendor init trigger that waits on `persist.sys.theme`. Check
      that the trigger fires without denial.
Change-Id: Ia85b1a8dfc118efdbb9337ca017c8fb7958dc386
Merged-In: Ibb4e392d5059b76059f36f7d11ba82cd65cbe970
(cherry picked from commit 75182a1ea6)
2019-06-18 17:36:21 -07:00
Tao Bao
890dba4999 Merge "Add persist.sys.theme." into qt-dev 2019-06-19 00:36:03 +00:00
Nicolas Geoffray
2cb1a28193 Merge "Allow zygote to create fds and map executable." am: 3a9a6f51c1
am: db0279bf5c

Change-Id: Ie238fa5903393a9ac842fee381d8f0e8bf1cf5bb
2019-06-18 00:15:43 -07:00
Nicolas Geoffray
db0279bf5c Merge "Allow zygote to create fds and map executable."
am: 3a9a6f51c1

Change-Id: I26fbc628077486aa10b06fdd677895a637c15aec
2019-06-18 00:07:42 -07:00
Nicolas Geoffray
3a9a6f51c1 Merge "Allow zygote to create fds and map executable." 2019-06-18 06:51:39 +00:00
Hridya Valsaraju
c93ce14b80 Merge "Add permission required by libdm_test" am: c25272db17
am: e286e6a99c

Change-Id: I79aac351040749eddb4aabaabee4c6f7324ab35e
2019-06-17 21:37:38 -07:00
Hridya Valsaraju
e286e6a99c Merge "Add permission required by libdm_test"
am: c25272db17

Change-Id: Ie340c09b834d3cf5bd902d725aefe80a993abb42
2019-06-17 21:25:35 -07:00
Hridya Valsaraju
351f85a4ee Add permission required by libdm_test
am: 9bb71537ac

Change-Id: I18326abc7713f95ee027e476a96ce32905a9525f
2019-06-17 21:15:34 -07:00
Treehugger Robot
c25272db17 Merge "Add permission required by libdm_test" 2019-06-18 03:49:24 +00:00
Hridya Valsaraju
faa29331cd Add permission required by libdm_test
This CL fixes the following denials during libdm_test
that is part of VTS.

avc: denied { read } for comm="loop1" path=2F6D656D66643A66696C655F32202864656C6574656429
dev="tmpfs" ino=97742 scontext=u:r:kernel:s0 tcontext=u:object_r:appdomain_tmpfs:s0
tclass=file permissive=0
W loop1   : type=1400 audit(0.0:371): avc: denied { read } for
path=2F6D656D66643A66696C655F32202864656C6574656429 dev="tmpfs" ino=97742 scontext=u:r:kernel:s0
tcontext=u:object_r:appdomain_tmpfs:s0 tclass=file permissive=0

Bug: 135004816
Test: adb shell libdm_test
Change-Id: Ifb6d58ee6f032cdf3952a05667aa8696d6e2a2fa
Merged-Id: Ifb6d58ee6f032cdf3952a05667aa8696d6e2a2fa
2019-06-18 03:47:58 +00:00
Hridya Valsaraju
9bb71537ac Add permission required by libdm_test
This CL fixes the following denials during libdm_test
that is part of VTS.

avc: denied { read } for comm="loop1" path=2F6D656D66643A66696C655F32202864656C6574656429
dev="tmpfs" ino=97742 scontext=u:r:kernel:s0 tcontext=u:object_r:appdomain_tmpfs:s0
tclass=file permissive=0
W loop1   : type=1400 audit(0.0:371): avc: denied { read } for
path=2F6D656D66643A66696C655F32202864656C6574656429 dev="tmpfs" ino=97742 scontext=u:r:kernel:s0
tcontext=u:object_r:appdomain_tmpfs:s0 tclass=file permissive=0

Bug: 135004816
Test: adb shell libdm_test
Change-Id: Ifb6d58ee6f032cdf3952a05667aa8696d6e2a2fa
2019-06-17 22:46:03 +00:00
Matthias Kramm
cf010dcb85 Merge "Allow hal_face to write to /data/vendor/camera_calibration/*." am: 9faeec71f2
am: c58cd73209

Change-Id: I102966877e40ec5c56033feb510e519c033aa407
2019-06-17 12:48:25 -07:00
Matthias Kramm
c58cd73209 Merge "Allow hal_face to write to /data/vendor/camera_calibration/*."
am: 9faeec71f2

Change-Id: I34adc91ee393b35360135df318c4fc4054b918a8
2019-06-17 12:39:29 -07:00
Matthias Kramm
9faeec71f2 Merge "Allow hal_face to write to /data/vendor/camera_calibration/*." 2019-06-17 19:31:50 +00:00
Nicolas Geoffray
f77e8c1b0c Allow zygote to create fds and map executable.
This is so that zygote can create the JIT cache with memfd_create
(or ashmem when memfd is not available).

Test: boot
Bug: 119800099
Change-Id: I88f1f6b1c930a8d22985b306a238f60b4af59f9c
2019-06-17 20:18:23 +01:00
Valerie Hau
5162b0c3d0 Add IMapper2.1 same process hal permissions am: d3499df3cf
am: 178ef8ccad

Change-Id: Ifaef339d29e8f0547cc5c3eb4992b14f1c7a81f3
2019-06-17 11:42:02 -07:00
Valerie Hau
178ef8ccad Add IMapper2.1 same process hal permissions
am: d3499df3cf

Change-Id: Ie66ef51b970b0bee118fc9995a817895ca1aa805
2019-06-17 11:33:59 -07:00
Tao Bao
75182a1ea6 Add persist.sys.theme.
This property will be set by system_server (to indicate the currently
selected theme for device), and can be accessed by vendor init.rc.

avc:  denied  { read } for property=persist.sys.theme pid=0 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:theme_prop:s0 tclass=file

Bug: 113028175
Test: Set a vendor init trigger that waits on `persist.sys.theme`. Check
      that the trigger fires without denial.
Change-Id: Ibb4e392d5059b76059f36f7d11ba82cd65cbe970
2019-06-17 10:48:21 -07:00
Harpreet "Eli" Sangha
1b62e7fd9d atrace: allow tracing of vibrator hal
Test: On-Device Systrace
Change-Id: I4172c83cf50106d28eb7b9330c5bb559fabc504b
Signed-off-by: Harpreet "Eli" Sangha <eliptus@google.com>
2019-06-17 12:25:05 +09:00