Commit graph

17488 commits

Author SHA1 Message Date
Remi NGUYEN VAN
d0f65ce2ff Allow network_stack to use common app api services
Bug: b/122620633
Test: m
Change-Id: I36fe66fc22a1664f9ef25c66f933a2613a6f346b
2019-01-11 07:48:21 +09:00
Carmen Jackson
9678e079ac Add selinux rules for detachable perfetto process.
This appears to be the minimum change required to accommodate Traceur
running the detachable Perfetto process.

Bug: 116754732
Test: Started a perfetto trace using --detach and it started
successfully.

Change-Id: I12881ae343389abdcc74af5f11ecbac99b03ef7c
2019-01-10 12:18:24 -08:00
Primiano Tucci
a64d5bb7ef Allow perfetto to ingest logs on userdebug/eng
When recording hour-long traces, logcat messages help
to interpret the trace, giving human readable context on what
is happening on the system.
Furthermore this is particularly helpful for startup
debugging thanks to activity manager instrumentation events
(am_on_create_called, am_on_start, ...).
This is only allowed on userdebug/eng builds.

Bug: 122243384
Change-Id: I4dfaebf21107e9853b0bf42403fbab6c3b4d5141
2019-01-10 20:14:06 +00:00
Tim Van Patten
3293abb67f Create System Property to Indicate ANGLE Support
Create the system property ro.gfx.angle.supported that indicates if the
device supports ANGLE.   The current planned use of this property is to
allow CTS to validate ANGLE functionality if the device indicates ANGLE
is supported.

Bug: 80239516
Test: Flash the build and verify the property is 'false' for marlin.
Test: Flash the build and verify the property is 'true' for walleye.
Change-Id: I00387db9ade34152f79d75453ea17d5ea7b063cd
2019-01-10 11:35:58 -07:00
Chalard Jean
fb15c9f12f Add sepolicy for IpMemoryStoreService
Bug: 116512211
Test: Builds, boots, including upcoming changes needing this
Change-Id: I6f119368c5a4f7ac6c0325915dff60124c5a6399
2019-01-10 18:06:56 +09:00
Tri Vo
4aa78f8054 Merge "Apply full_treble_only to whole rule."
am: 0fa0d1e596

Change-Id: Ie1d550d4dcb0123db423f1625d4489e16befe580
2019-01-09 19:11:37 -08:00
Tri Vo
0fa0d1e596 Merge "Apply full_treble_only to whole rule." 2019-01-10 03:06:35 +00:00
Chong Zhang
9a4260545d adding apex for media swcodecs
am: b1ab8c6f9f

Change-Id: I7f1ba386bc168b0f5607308d3cc180f43146a3df
2019-01-09 19:06:04 -08:00
Tri Vo
1e99de5779 Apply full_treble_only to whole rule.
The way we build and run CTS expects full_treble_only and
compatible_property_only macros to be applied to whole rules and not be
nested inside other rules.

Fixes: 122601363
Test: corresponding neverallow rule in auto-generated
SELinuxNeverallowRulesTest.java is parsed correctly.
Change-Id: Ibf5187cedca72510fe74c6dc55a75a54a86c02ff
2019-01-09 16:57:09 -08:00
Chong Zhang
b1ab8c6f9f adding apex for media swcodecs
bug: 111407413
Change-Id: Ica209ad9476b0597a206bf53823a1928643c8256
2019-01-09 13:24:59 -08:00
Yabin Cui
0dd15e788a Merge "Add permissions in runas_app domain to debug/profile debuggable apps."
am: cd1c24f323

Change-Id: I11c6f1d25977837b5388de34a3796b7cadcf5ea8
2019-01-09 12:06:09 -08:00
Treehugger Robot
cd1c24f323 Merge "Add permissions in runas_app domain to debug/profile debuggable apps." 2019-01-09 19:48:18 +00:00
Chenbo Feng
1e98efd4c6 Merge "Use bpfloader to create bpf maps instead of netd"
am: a739746990

Change-Id: Iddcc2231c391c512b03dfa9779661518ffec141b
2019-01-09 10:54:27 -08:00
Jeff Vander Stoep
e61a910b19 Merge "audit use of net.dns. property"
am: 7813cf4249

Change-Id: I5bba542852de7b2bebc5777b0452519453db5cdc
2019-01-09 10:53:49 -08:00
Treehugger Robot
a739746990 Merge "Use bpfloader to create bpf maps instead of netd" 2019-01-09 18:34:49 +00:00
Treehugger Robot
7813cf4249 Merge "audit use of net.dns. property" 2019-01-09 18:26:19 +00:00
Yabin Cui
770a4f6539 Add permissions in runas_app domain to debug/profile debuggable apps.
runas_app domain is used by lldb/ndk-gdb/simpleperf to debug/profile
debuggable apps. But it misses permissions to ptrace app processes and
read /proc/<app_pid> directory.

Bug: none
Test: build and boot marlin.
Test: run lldb and simpleperf on apps with target sdk version 24-29.
Change-Id: I9e6f940ec81a8285eae8db3b77fb1251a25dedd0
2019-01-09 17:24:31 +00:00
Jiyong Park
b55762da64 Allow init to mount on bionic libs and the dynamic linker
In order to use the bionic libs and the dynamic linker from the runtime
APEX for all processes that are started after the APEX is activated, the
paths /system/lib/{libc.so|libm.so|libdl.so} and /system/bin/linker are
bind-mounted to the corresponding bionic libs and the dynamic linker
in the runtime APEX.

This bind mount allows us to keep other part of the platform and the
tests having implicit assumption that bionic libs are located at
/system/lib and loaded from the default linker namespace.

Bug: 120266448
Test: device boots

Change-Id: Ied611b267d187ee3d75a139c378ee12242d5b8d8
2019-01-09 20:41:41 +09:00
David Anderson
3cbe14c465 Merge "Allow init to symlink userdata during first stage mounting."
am: 39b0b80c34

Change-Id: Iff335fa5d47c7d745625f5c56540b724818ac020
2019-01-08 23:43:22 -08:00
David Anderson
39b0b80c34 Merge "Allow init to symlink userdata during first stage mounting." 2019-01-09 07:37:00 +00:00
Remi NGUYEN VAN
2fcc323ab5 Merge "Change package name for NetworkStack"
am: b4eef1ae50

Change-Id: I105c5e66c53f4785419d18436b5d7fb7b42196e3
2019-01-08 21:06:34 -08:00
Remi NGUYEN VAN
b4eef1ae50 Merge "Change package name for NetworkStack" 2019-01-09 04:57:19 +00:00
Tri Vo
aa8b5689f2 Separate product_mac_permissions.xml out of system sepolicy.
am: 35650d50a1

Change-Id: I222870431b122babc913fe0dd78920632f5bd8bc
2019-01-08 20:55:57 -08:00
Tri Vo
152d7bfdc8 Separate product_service_contexts out of system sepolicy.
am: 6ac0896b90

Change-Id: Ia4e14801bdea9078ea20bf9477ba3d61d29d9177
2019-01-08 20:55:45 -08:00
Tri Vo
ecbdb81036 Separate product_seapp_contexts out of system sepolicy.
am: 3507678d2e

Change-Id: Ie68e48ed83afa9cf8b55bf17befd19524d964fa3
2019-01-08 20:55:34 -08:00
Tri Vo
17c5b7385f Separate product_property_contexts out of system sepolicy.
am: 5da7200510

Change-Id: I2f54927fb8c7e6a73c9bdb31cfd79186bcd3d12a
2019-01-08 20:55:22 -08:00
Tri Vo
51b5f66fa8 Separate product_hwservice_contexts out of system sepolicy.
am: ade741635f

Change-Id: I3283f121a7dfae31fcd9c831be4c51165f4b6d12
2019-01-08 20:55:11 -08:00
Jeff Vander Stoep
ecb00a109c audit use of net.dns. property
Bug: 33308258
Test: atest CtsSelinuxTargetSdk25TestCases
Change-Id: Ifeceecec7b2f38ebd38b6693712b8f65ee24dc5d
2019-01-08 18:44:29 +00:00
Chenbo Feng
7b57104013 Use bpfloader to create bpf maps instead of netd
Recent change in netd and bpfloader switched the creater of bpf maps
from netd to bpfloader. Change the rules related to it to make sure it
doesn't fail.

Test: dumpsys netd trafficcontroller
Bug: 112334572
Change-Id: I016ff68b58ef7b12bdfdebc2fd178be1d0206a62
2019-01-08 10:30:22 -08:00
Tri Vo
35650d50a1 Separate product_mac_permissions.xml out of system sepolicy.
Bug: 119305624
Test: normal/recovery boot aosp_taimen

Change-Id: I46da995886ce421bb87e741d577f659426ff79c4
2019-01-08 09:49:30 -08:00
Tri Vo
6ac0896b90 Separate product_service_contexts out of system sepolicy.
Bug: 119305624
Test: normal/recovery boot aosp_taimen
Change-Id: I15aa275fa658b58f5a5d3e651d164f9fcd87c0af
2019-01-08 09:49:30 -08:00
Tri Vo
3507678d2e Separate product_seapp_contexts out of system sepolicy.
Bug: 119305624
Test: normal/recovery boot aosp_taimen
Change-Id: Ia8d69be16011db8dd63fa41672449a4ade7302c2
2019-01-08 09:49:30 -08:00
Tri Vo
5da7200510 Separate product_property_contexts out of system sepolicy.
Bug: 119305624
Test: normal/recovery boot aosp_taimen
Change-Id: Ib7a29a9f8f23dd917cc25c23c7612f9e4ae36ea0
2019-01-08 09:49:30 -08:00
Tri Vo
ade741635f Separate product_hwservice_contexts out of system sepolicy.
Bug: 119305624
Test: normal/recovery boot aosp_taimen
Change-Id: I1009745686acd51563378dac56e857be0d60e794
2019-01-08 09:49:30 -08:00
Joel Galenson
f2cfe86a82 Merge "Allow dumpstate to read some directories."
am: edbe51215e

Change-Id: I4a57c5776f94028ef39e3ab9a25ffd1d830e00ba
2019-01-08 07:46:57 -08:00
Treehugger Robot
edbe51215e Merge "Allow dumpstate to read some directories." 2019-01-08 15:21:06 +00:00
Narayan Kamath
801e32ecc2 Allow system_server to read apex_data_file.
am: 9f343b32be

Change-Id: I28e9f1f9285196141bb9c980ea8d08ac419c4c51
2019-01-08 04:06:37 -08:00
Narayan Kamath
9f343b32be Allow system_server to read apex_data_file.
For consistency with APKs, signature verification is performed
in the system_server. This includes checking that the signature of
an updated install matches the signature of the active package that
it updates. For this, it requires search access to /data/apex and
read access to the files under that directory.

Test: m
Change-Id: Ia073adb8892886e4767fa5529e95c110b9cbff1b
2019-01-08 11:55:01 +00:00
Dario Freni
757484f199 Merge "SEPolicy for Staged Installs."
am: 4d399f606f

Change-Id: Idbec6c32736accd630831d7de420d4bdc66b9d14
2019-01-08 02:03:00 -08:00
Dario Freni
4d399f606f Merge "SEPolicy for Staged Installs." 2019-01-08 09:55:18 +00:00
Remi NGUYEN VAN
aed7180675 Change package name for NetworkStack
Test: flashed, booted, verified app running properly
Bug: b/112869080
Change-Id: I10737736ca5da67ef08fca1055e0f702371aba58
2019-01-08 17:30:30 +09:00
Joel Galenson
70c81b9f83 Merge "Add Adam to OWNERS."
am: 58b2f2b86d

Change-Id: I0ed6c271665208b1cfbdb2871adfd053ea71dba6
2019-01-07 20:50:23 -08:00
Treehugger Robot
58b2f2b86d Merge "Add Adam to OWNERS." 2019-01-08 04:41:12 +00:00
Jiyong Park
cdb6889e8f Merge "Label the dynamic linker in the runtime APEX correctly"
am: ec5a6ce810

Change-Id: I26207c3d3dd548cb0483d4672c33ca9d2fb17269
2019-01-07 17:18:29 -08:00
Treehugger Robot
ec5a6ce810 Merge "Label the dynamic linker in the runtime APEX correctly" 2019-01-08 00:20:29 +00:00
Dario Freni
274c1ded4d SEPolicy for Staged Installs.
Test: basic workflow between apexd and PackageManager tested with
changes being developed.
Bug: 118865310
Change-Id: I1ae866f33e9b22493585e108c4fd45400493c7ac
2019-01-07 22:36:28 +00:00
Joel Galenson
886ba9c9ff Allow dumpstate to read some directories.
This prevents denials while taking a bugreport.

Bug: 116711254
Test: cts-tradefed run cts -m CtsSecurityHostTestCases -t
android.security.cts.SELinuxHostTest#testNoBugreportDenials

Change-Id: I64f441eb66c355d03eaf7755f2e9d3e970305ecd
2019-01-07 12:45:56 -08:00
Alan Stokes
99a069c082 Merge "Un-revert "Audit execution of app_data_file native code.""
am: 34bd20fbdd

Change-Id: Ie6158ce18a0e86154faac17ec8cff3a601e29399
2019-01-07 12:34:07 -08:00
Treehugger Robot
34bd20fbdd Merge "Un-revert "Audit execution of app_data_file native code."" 2019-01-07 20:24:43 +00:00
Tri Vo
c57a0ef2c7 Merge "sepolicy: Improve treble test error message."
am: f1f1b4f063

Change-Id: Idd686780f29078cf8f71d499afd5c731a6761e19
2019-01-07 11:55:28 -08:00